53 char tmp[128] = { 0 };
81 const char *s = aptr->
tree;
181 const char *s =
"<no description>";
198 static const char dispchar[] = {
'I',
'A',
'F',
'-' };
264 char tmp[128] = { 0 };
338 const char *s = aptr->
body->
tagged ?
"*" :
" ";
360 const char *s = aptr->
body->
unlink ?
"-" :
" ";
400 { -1, -1, NULL, NULL },
const struct ExpandoRenderCallback AttachRenderCallbacks[]
Callbacks for Attachment Expandos.
Handling of email attachments.
@ ED_ATT_NUMBER
AttachPtr.num.
@ ED_ATT_TREE
AttachPtr.tree.
@ ED_ATT_CHARSET
AttachPtr.body.
int buf_printf(struct Buffer *buf, const char *fmt,...)
Format a string overwriting a Buffer.
size_t buf_strcpy(struct Buffer *buf, const char *s)
Copy a string into a Buffer.
size_t buf_copy(struct Buffer *dst, const struct Buffer *src)
Copy a Buffer's contents to another Buffer.
Color and attribute parsing.
@ MT_COLOR_TREE
Index: tree-drawing characters.
const struct Expando * cs_subset_expando(const struct ConfigSubset *sub, const char *name)
Get an Expando config item by name.
Convenience wrapper for the core headers.
int mutt_make_string(struct Buffer *buf, size_t max_cols, const struct Expando *exp, struct Mailbox *m, int inpgr, struct Email *e, MuttFormatFlags flags, const char *progress)
Create formatted strings using mailbox expandos.
@ ED_BODY
Body ED_BOD_ ExpandoDataBody.
@ ED_ATTACH
Attach ED_ATT_ ExpandoDataAttach.
char * mutt_body_get_charset(struct Body *b, char *buf, size_t buflen)
Get a body's character set.
@ ED_BOD_DESCRIPTION
Body.description.
@ ED_BOD_CHARSET_CONVERT
Body.type.
@ ED_BOD_DELETED
Body.deleted.
@ ED_BOD_UNLINK
Body.unlink.
@ ED_BOD_FILE_SIZE
Body.filename.
@ ED_BOD_DISPOSITION
Body.disposition.
@ ED_BOD_ATTACH_QUALIFIES
Body.attach_qualifies.
@ ED_BOD_MIME_MAJOR
Body.type, Body.xtype.
@ ED_BOD_TAGGED
Body.tagged.
@ ED_BOD_ATTACH_COUNT
Body.attach_count.
@ ED_BOD_FILE
Body.filename.
@ ED_BOD_MIME_MINOR
Body.subtype.
@ ED_BOD_FILE_DISPOSITION
Body.d_filename.
@ ED_BOD_MIME_ENCODING
Body.encoding.
Structs that make up an email.
bool mutt_is_message_type(int type, const char *subtype)
Determine if a mime type matches a message or not.
long mutt_file_get_size(const char *path)
Get the size of a file.
static long body_deleted_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Body: Deleted - Implements get_number_t -.
static long body_tagged_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Body: Is Tagged - Implements get_number_t -.
static long body_file_size_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Body: Size - Implements get_number_t -.
static long attach_number_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Attachment: Index number - Implements get_number_t -.
static long body_attach_count_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Body: Number of MIME parts - Implements get_number_t -.
static long body_unlink_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Body: Unlink flag - Implements get_number_t -.
static long body_attach_qualifies_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Body: Attachment counting - Implements get_number_t -.
static void body_deleted(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Body: Deleted - Implements get_string_t -.
static void body_file_size(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Body: Size - Implements get_string_t -.
static void body_tagged(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Body: Is Tagged - Implements get_string_t -.
static void body_disposition(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Body: Disposition flag - Implements get_string_t -.
static void body_charset_convert(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Body: Requires conversion flag - Implements get_string_t -.
static void attach_tree(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Attachment: Tree characters - Implements get_string_t -.
static void attach_charset(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Attachment: Charset - Implements get_string_t -.
static void body_mime_major(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Body: Major MIME type - Implements get_string_t -.
static void body_file_disposition(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Body: Filename in header - Implements get_string_t -.
static void body_description(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Body: Description - Implements get_string_t -.
static void body_mime_encoding(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Body: MIME type - Implements get_string_t -.
static void body_file(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Body: Filename - Implements get_string_t -.
static void body_mime_minor(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Body: MIME subtype - Implements get_string_t -.
static void body_unlink(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Body: Unlink flag - Implements get_string_t -.
static void body_attach_qualifies(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Body: Attachment counting - Implements get_string_t -.
#define mutt_debug(LEVEL,...)
GUI manage the main index (list of emails)
@ LL_DEBUG1
Log at debug level 1.
@ TYPE_TEXT
Type: 'text/*'.
Convenience wrapper for the library headers.
bool mutt_is_text_part(const struct Body *b)
Is this part of an email in plain text?
void buf_pretty_mailbox(struct Buffer *buf)
Shorten a mailbox path using '~' or '='.
void mutt_str_pretty_size(char *buf, size_t buflen, size_t num)
Display an abbreviated size, like 3.4K.
Some miscellaneous functions.
void node_expando_set_color(const struct ExpandoNode *node, int cid)
Set the colour for an Expando.
void node_expando_set_has_tree(const struct ExpandoNode *node, bool has_tree)
Set the has_tree flag for an Expando.
struct Buffer * buf_pool_get(void)
Get a Buffer from the pool.
void buf_pool_release(struct Buffer **ptr)
Return a Buffer to the pool.
#define MUTT_FORMAT_FORCESUBJ
Print the subject even if unchanged.
#define MUTT_FORMAT_ARROWCURSOR
Reserve space for arrow_cursor.
uint8_t MuttFormatFlags
Flags for expando_render(), e.g. MUTT_FORMAT_FORCESUBJ.
#define MUTT_FORMAT_STAT_FILE
Used by attach_format_str.
An email to which things will be attached.
struct Body * body
Attachment.
char * tree
Tree characters to display.
int num
Attachment index number.
char * d_filename
filename to be used for the content-disposition header If NULL, filename is used instead.
signed short attach_count
Number of attachments.
bool deleted
Attachment marked for deletion.
bool noconv
Don't do character set conversion.
bool unlink
If true, filename should be unlink()ed before free()ing this structure.
LOFF_T length
length (in bytes) of attachment
struct AttachPtr * aptr
Menu information, used in recvattach.c.
struct Email * email
header information for message/rfc822
char * description
content-description
unsigned int disposition
content-disposition, ContentDisposition
bool attach_qualifies
This attachment should be counted.
bool tagged
This attachment is tagged.
char * subtype
content-type subtype
unsigned int encoding
content-transfer-encoding, ContentEncoding
unsigned int type
content-type primary type, ContentType
char * filename
When sending a message, this is the file to which this structure refers.
String manipulation buffer.
char * data
Pointer to data.
struct ExpandoNode * node
Parsed tree.
Container for Accounts, Notifications.
struct ConfigSubset * sub
Inherited config items.