NeoMutt  2020-09-25
Teaching an old dog new tricks
DOXYGEN
mutt_parse.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_MUTT_PARSE_H
24 #define MUTT_MUTT_PARSE_H
25 
26 #include "mutt/lib.h"
27 #include "email/lib.h"
28 
29 struct Mailbox;
30 
35 {
36  const char *major;
38  const char *minor;
39  regex_t minor_regex;
40 };
41 
42 extern struct ListHead AttachAllow;
43 extern struct ListHead AttachExclude;
44 extern struct ListHead InlineAllow;
45 extern struct ListHead InlineExclude;
46 
47 int mutt_count_body_parts(struct Mailbox *m, struct Email *e);
48 void mutt_parse_mime_message(struct Mailbox *m, struct Email *e);
49 void mutt_attachmatch_free(struct AttachMatch **ptr);
50 
51 #endif /* MUTT_MUTT_PARSE_H */
The envelope/body of an email.
Definition: email.h:37
Structs that make up an email.
enum ContentType major_int
Definition: mutt_parse.h:37
const char * major
Definition: mutt_parse.h:36
int mutt_count_body_parts(struct Mailbox *m, struct Email *e)
Count the MIME Body parts.
Definition: mutt_parse.c:205
struct ListHead InlineExclude
List of inline types to ignore.
Definition: mutt_parse.c:41
A mailbox.
Definition: mailbox.h:81
void mutt_parse_mime_message(struct Mailbox *m, struct Email *e)
Parse a MIME email.
Definition: mutt_parse.c:48
struct ListHead InlineAllow
List of inline types to counted.
Definition: mutt_parse.c:40
regex_t minor_regex
Definition: mutt_parse.h:39
struct ListHead AttachAllow
List of attachment types to be counted.
Definition: mutt_parse.c:38
struct ListHead AttachExclude
List of attachment types to be ignored.
Definition: mutt_parse.c:39
An attachment matching a regex for attachment counter.
Definition: mutt_parse.h:34
Convenience wrapper for the library headers.
void mutt_attachmatch_free(struct AttachMatch **ptr)
Free an AttachMatch - Implements list_free_t.
Definition: mutt_parse.c:240
const char * minor
Definition: mutt_parse.h:38
ContentType
Content-Type.
Definition: mime.h:29