NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
DOXYGEN
recvattach.h
Go to the documentation of this file.
1 
24 #ifndef MUTT_RECVATTACH_H
25 #define MUTT_RECVATTACH_H
26 
27 #include <stddef.h>
28 #include <stdbool.h>
29 #include <stdint.h>
30 #include <stdio.h>
31 #include "format_flags.h"
32 
33 struct AttachCtx;
34 struct ConfigSubset;
35 struct Body;
36 struct Email;
37 struct Mailbox;
38 
39 void mutt_attach_init(struct AttachCtx *actx);
40 void mutt_update_tree(struct AttachCtx *actx);
41 
42 const char *attach_format_str(char *buf, size_t buflen, size_t col, int cols, char op, const char *src, const char *prec, const char *if_str, const char *else_str, intptr_t data, MuttFormatFlags flags);
43 void dlg_select_attachment(struct ConfigSubset *sub, struct Mailbox *m, struct Email *e, FILE *fp);
44 
45 void mutt_generate_recvattach_list(struct AttachCtx *actx, struct Email *e, struct Body *parts, FILE *fp, int parent_type, int level, bool decrypted);
46 
47 #endif /* MUTT_RECVATTACH_H */
uint8_t MuttFormatFlags
Flags for mutt_expando_format(), e.g. MUTT_FORMAT_FORCESUBJ.
Definition: format_flags.h:29
void mutt_generate_recvattach_list(struct AttachCtx *actx, struct Email *e, struct Body *parts, FILE *fp, int parent_type, int level, bool decrypted)
Create a list of attachments.
Definition: recvattach.c:1465
The envelope/body of an email.
Definition: email.h:37
void dlg_select_attachment(struct ConfigSubset *sub, struct Mailbox *m, struct Email *e, FILE *fp)
Show the attachments in a Menu.
Definition: recvattach.c:1713
Flags to control mutt_expando_format()
The body of an email.
Definition: body.h:34
const char * attach_format_str(char *buf, size_t buflen, size_t col, int cols, char op, const char *src, const char *prec, const char *if_str, const char *else_str, intptr_t data, MuttFormatFlags flags)
Format a string for the attachment menu - Implements format_t -Expando Description %C Character set ...
Definition: recvattach.c:270
A set of inherited config items.
Definition: subset.h:46
A mailbox.
Definition: mailbox.h:81
struct ConfigSubset * sub
Inherited config items.
Definition: mailbox.h:86
uint8_t flags
e.g. MB_NORMAL
Definition: mailbox.h:134
void mutt_update_tree(struct AttachCtx *actx)
Refresh the list of attachments.
Definition: recvattach.c:204
A set of attachments.
Definition: attach.h:49
void mutt_attach_init(struct AttachCtx *actx)
Create a new Attachment context.
Definition: recvattach.c:1571