NeoMutt  2024-04-16-36-g75b6fb
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
dlg_attach.c File Reference

Attachment Selection Dialog. More...

#include "config.h"
#include <stdbool.h>
#include <stdio.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "email/lib.h"
#include "core/lib.h"
#include "gui/lib.h"
#include "lib.h"
#include "color/lib.h"
#include "expando/lib.h"
#include "key/lib.h"
#include "menu/lib.h"
#include "attach.h"
#include "attachments.h"
#include "functions.h"
#include "hdrline.h"
#include "hook.h"
#include "mutt_logging.h"
#include "muttlib.h"
#include "mview.h"
#include "private_data.h"
#include "recvattach.h"
+ Include dependency graph for dlg_attach.c:

Go to the source code of this file.

Functions

void attach_F (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
 Attachment: Filename in header - Implements ExpandoRenderData::get_string() -.
 
static int attach_config_observer (struct NotifyCallback *nc)
 Notification that a Config Variable has changed - Implements observer_t -.
 
void attach_c (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
 Attachment: Requires conversion flag - Implements ExpandoRenderData::get_string() -.
 
void attach_C (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
 Attachment: Charset - Implements ExpandoRenderData::get_string() -.
 
void attach_d (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
 Attachment: Description - Implements ExpandoRenderData::get_string() -.
 
long attach_D_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
 Attachment: Deleted - Implements ExpandoRenderData::get_number() -.
 
void attach_D (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
 Attachment: Deleted - Implements ExpandoRenderData::get_string() -.
 
void attach_e (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
 Attachment: MIME type - Implements ExpandoRenderData::get_string() -.
 
void attach_f (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
 Attachment: Filename - Implements ExpandoRenderData::get_string() -.
 
void attach_I (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
 Attachment: Disposition flag - Implements ExpandoRenderData::get_string() -.
 
void attach_m (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
 Attachment: Major MIME type - Implements ExpandoRenderData::get_string() -.
 
void attach_M (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
 Attachment: MIME subtype - Implements ExpandoRenderData::get_string() -.
 
long attach_n_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
 Attachment: Index number - Implements ExpandoRenderData::get_number() -.
 
long attach_Q_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
 Attachment: Attachment counting - Implements ExpandoRenderData::get_number() -.
 
void attach_Q (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
 Attachment: Attachment counting - Implements ExpandoRenderData::get_string() -.
 
long attach_s_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
 Attachment: Size - Implements ExpandoRenderData::get_number() -.
 
void attach_s (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
 Attachment: Size - Implements ExpandoRenderData::get_string() -.
 
long attach_t_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
 Attachment: Is Tagged - Implements ExpandoRenderData::get_number() -.
 
void attach_t (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
 Attachment: Is Tagged - Implements ExpandoRenderData::get_string() -.
 
void attach_T (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
 Attachment: Tree characters - Implements ExpandoRenderData::get_string() -.
 
long attach_u_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
 Attachment: Unlink flag - Implements ExpandoRenderData::get_number() -.
 
void attach_u (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
 Attachment: Unlink flag - Implements ExpandoRenderData::get_string() -.
 
long attach_X_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
 Attachment: Number of MIME parts - Implements ExpandoRenderData::get_number() -.
 
static int attach_make_entry (struct Menu *menu, int line, int max_cols, struct Buffer *buf)
 Format an Attachment for the Menu - Implements Menu::make_entry() -.
 
static int attach_tag (struct Menu *menu, int sel, int act)
 Tag an attachment - Implements Menu::tag() -.
 
static int attach_window_observer (struct NotifyCallback *nc)
 Notification that a Window has changed - Implements observer_t -.
 
void dlg_attachment (struct ConfigSubset *sub, struct MailboxView *mv, struct Email *e, FILE *fp, bool attach_msg)
 Show the attachments in a Menu -.
 

Variables

static const struct Mapping AttachmentHelp []
 Help Bar for the Attachment selection dialog.
 
const struct ExpandoRenderData AttachRenderData []
 Callbacks for Attachment Expandos.
 

Detailed Description

Attachment Selection Dialog.

Authors
  • Pietro Cerutti
  • Richard Russon
  • Tóth János

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file dlg_attach.c.

Variable Documentation

◆ AttachmentHelp

const struct Mapping AttachmentHelp[]
static
Initial value:
= {
{ N_("Exit"), OP_EXIT },
{ N_("Save"), OP_ATTACHMENT_SAVE },
{ N_("Pipe"), OP_PIPE },
{ N_("Print"), OP_ATTACHMENT_PRINT },
{ N_("Help"), OP_HELP },
{ NULL, 0 },
}
#define N_(a)
Definition: message.h:32

Help Bar for the Attachment selection dialog.

Definition at line 98 of file dlg_attach.c.

◆ AttachRenderData

const struct ExpandoRenderData AttachRenderData[]
Initial value:
= {
{ -1, -1, NULL, NULL },
}
@ ED_ATT_NUMBER
AttachPtr.num.
Definition: attach.h:57
@ ED_ATT_TREE
AttachPtr.tree.
Definition: attach.h:58
@ ED_ATT_CHARSET
AttachPtr.body.
Definition: attach.h:56
@ ED_BODY
Body ED_BOD_ ExpandoDataBody.
Definition: domain.h:38
@ ED_ATTACH
Attach ED_ATT_ ExpandoDataAttach.
Definition: domain.h:36
@ ED_BOD_DESCRIPTION
Body.description.
Definition: body.h:105
@ ED_BOD_CHARSET_CONVERT
Body.type.
Definition: body.h:103
@ ED_BOD_DELETED
Body.deleted.
Definition: body.h:104
@ ED_BOD_UNLINK
Body.unlink.
Definition: body.h:114
@ ED_BOD_FILE_SIZE
Body.filename.
Definition: body.h:109
@ ED_BOD_DISPOSITION
Body.disposition.
Definition: body.h:106
@ ED_BOD_ATTACH_QUALIFIES
Body.attach_qualifies.
Definition: body.h:102
@ ED_BOD_MIME_MAJOR
Body.type, Body.xtype.
Definition: body.h:111
@ ED_BOD_TAGGED
Body.tagged.
Definition: body.h:113
@ ED_BOD_ATTACH_COUNT
Body.attach_count.
Definition: body.h:101
@ ED_BOD_FILE
Body.filename.
Definition: body.h:107
@ ED_BOD_MIME_MINOR
Body.subtype.
Definition: body.h:112
@ ED_BOD_FILE_DISPOSITION
Body.d_filename.
Definition: body.h:108
@ ED_BOD_MIME_ENCODING
Body.encoding.
Definition: body.h:110
long attach_s_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Attachment: Size - Implements ExpandoRenderData::get_number() -.
Definition: dlg_attach.c:357
long attach_u_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Attachment: Unlink flag - Implements ExpandoRenderData::get_number() -.
Definition: dlg_attach.c:430
long attach_D_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Attachment: Deleted - Implements ExpandoRenderData::get_number() -.
Definition: dlg_attach.c:200
long attach_Q_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Attachment: Attachment counting - Implements ExpandoRenderData::get_number() -.
Definition: dlg_attach.c:335
long attach_t_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Attachment: Is Tagged - Implements ExpandoRenderData::get_number() -.
Definition: dlg_attach.c:394
long attach_X_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Attachment: Number of MIME parts - Implements ExpandoRenderData::get_number() -.
Definition: dlg_attach.c:452
long attach_n_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Attachment: Index number - Implements ExpandoRenderData::get_number() -.
Definition: dlg_attach.c:325
void attach_m(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
Attachment: Major MIME type - Implements ExpandoRenderData::get_string() -.
Definition: dlg_attach.c:301
void attach_D(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
Attachment: Deleted - Implements ExpandoRenderData::get_string() -.
Definition: dlg_attach.c:209
void attach_s(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
Attachment: Size - Implements ExpandoRenderData::get_string() -.
Definition: dlg_attach.c:370
void attach_e(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
Attachment: MIME type - Implements ExpandoRenderData::get_string() -.
Definition: dlg_attach.c:222
void attach_t(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
Attachment: Is Tagged - Implements ExpandoRenderData::get_string() -.
Definition: dlg_attach.c:403
void attach_T(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
Attachment: Tree characters - Implements ExpandoRenderData::get_string() -.
Definition: dlg_attach.c:416
void attach_c(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
Attachment: Requires conversion flag - Implements ExpandoRenderData::get_string() -.
Definition: dlg_attach.c:136
void attach_d(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
Attachment: Description - Implements ExpandoRenderData::get_string() -.
Definition: dlg_attach.c:165
void attach_u(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
Attachment: Unlink flag - Implements ExpandoRenderData::get_string() -.
Definition: dlg_attach.c:439
void attach_F(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
Attachment: Filename in header - Implements ExpandoRenderData::get_string() -.
Definition: dlg_attach.c:258
void attach_M(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
Attachment: MIME subtype - Implements ExpandoRenderData::get_string() -.
Definition: dlg_attach.c:313
void attach_C(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
Attachment: Charset - Implements ExpandoRenderData::get_string() -.
Definition: dlg_attach.c:149
void attach_f(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
Attachment: Filename - Implements ExpandoRenderData::get_string() -.
Definition: dlg_attach.c:234
void attach_I(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
Attachment: Disposition flag - Implements ExpandoRenderData::get_string() -.
Definition: dlg_attach.c:276
void attach_Q(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf)
Attachment: Attachment counting - Implements ExpandoRenderData::get_string() -.
Definition: dlg_attach.c:344

Callbacks for Attachment Expandos.

See also
AttachFormatDef, ExpandoDataAttach, ExpandoDataBody, ExpandoDataGlobal

Definition at line 621 of file dlg_attach.c.