NeoMutt  2021-02-05-89-gabe350
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 */
AttachMatch
An attachment matching a regex for attachment counter.
Definition: mutt_parse.h:34
mutt_count_body_parts
int mutt_count_body_parts(struct Mailbox *m, struct Email *e)
Count the MIME Body parts.
Definition: mutt_parse.c:208
Mailbox
A mailbox.
Definition: mailbox.h:81
AttachExclude
struct ListHead AttachExclude
List of attachment types to be ignored.
Definition: mutt_parse.c:40
ContentType
ContentType
Content-Type.
Definition: mime.h:29
InlineExclude
struct ListHead InlineExclude
List of inline types to ignore.
Definition: mutt_parse.c:42
lib.h
AttachMatch::major_int
enum ContentType major_int
Definition: mutt_parse.h:37
mutt_attachmatch_free
void mutt_attachmatch_free(struct AttachMatch **ptr)
Free an AttachMatch - Implements list_free_t.
Definition: mutt_parse.c:243
lib.h
InlineAllow
struct ListHead InlineAllow
List of inline types to counted.
Definition: mutt_parse.c:41
mutt_parse_mime_message
void mutt_parse_mime_message(struct Mailbox *m, struct Email *e)
Parse a MIME email.
Definition: mutt_parse.c:49
AttachMatch::minor_regex
regex_t minor_regex
Definition: mutt_parse.h:39
AttachAllow
struct ListHead AttachAllow
List of attachment types to be counted.
Definition: mutt_parse.c:39
AttachMatch::major
const char * major
Definition: mutt_parse.h:36
Email
The envelope/body of an email.
Definition: email.h:37
AttachMatch::minor
const char * minor
Definition: mutt_parse.h:38