NeoMutt  2018-07-16 +2481-68dcde
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 <stdio.h>
30 #include "format_flags.h"
31 
32 struct AttachCtx;
33 struct Body;
34 struct Email;
35 
36 /* These Config Variables are only used in recvattach.c */
37 extern char *C_AttachSaveDir;
38 extern char *C_AttachSaveWithoutPrompting;
39 extern char *C_AttachSep;
40 extern bool C_AttachSplit;
41 extern bool C_DigestCollapse;
42 extern char *C_MessageFormat;
43 
44 void mutt_attach_init(struct AttachCtx *actx);
45 void mutt_update_tree(struct AttachCtx *actx);
46 
47 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, unsigned long data, MuttFormatFlags flags);
48 void mutt_view_attachments(struct Email *e);
49 
50 void mutt_generate_recvattach_list(struct AttachCtx *actx, struct Email *e, struct Body *parts, FILE *fp, int parent_type, int level, bool decrypted);
51 
52 #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:1224
The envelope/body of an email.
Definition: email.h:39
char * C_AttachSep
Config: Separator to add between saved/printed/piped attachments.
Definition: recvattach.c:75
char * C_MessageFormat
Config: printf-like format string for listing attached messages.
Definition: recvattach.c:78
Flags to control mutt_expando_format()
char * C_AttachSaveDir
Config: Default directory where attachments are saved.
Definition: recvattach.c:73
The body of an email.
Definition: body.h:34
bool C_AttachSplit
Config: Save/print/pipe tagged messages individually.
Definition: recvattach.c:76
void mutt_view_attachments(struct Email *e)
Show the attachments in a Menu.
Definition: recvattach.c:1412
bool C_DigestCollapse
Config: Hide the subparts of a multipart/digest.
Definition: recvattach.c:77
char * C_AttachSaveWithoutPrompting
Config: If true, then don&#39;t prompt to save.
Definition: recvattach.c:74
void mutt_update_tree(struct AttachCtx *actx)
Refresh the list of attachments.
Definition: recvattach.c:144
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, unsigned long data, MuttFormatFlags flags)
Format a string for the attachment menu - Implements format_t.
Definition: recvattach.c:210
A set of attachments.
Definition: attach.h:49
void mutt_attach_init(struct AttachCtx *actx)
Create a new Attachment context.
Definition: recvattach.c:1331