NeoMutt  2019-12-07
Teaching an old dog new tricks
DOXYGEN
mime.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_EMAIL_MIME_H
24 #define MUTT_EMAIL_MIME_H
25 
30 {
41 };
42 
47 {
55 };
56 
61 {
66 };
67 
68 /* MIME encoding/decoding global vars */
69 
70 extern const int IndexHex[128];
71 extern const char *const BodyTypes[];
72 extern const char *const BodyEncodings[];
73 extern const char MimeSpecials[];
74 
75 #define hexval(ch) IndexHex[(unsigned int) (ch)]
76 
77 #define is_multipart(body) \
78  (((body)->type == TYPE_MULTIPART) || \
79  (((body)->type == TYPE_MESSAGE) && ((body)->subtype) && \
80  ((strcasecmp((body)->subtype, "rfc822") == 0) || \
81  (strcasecmp((body)->subtype, "news") == 0))))
82 
83 #define TYPE(body) \
84  ((body->type == TYPE_OTHER) && body->xtype ? body->xtype : BodyTypes[(body->type)])
85 #define ENCODING(x) BodyEncodings[(x)]
86 
87 #endif /* MUTT_EMAIL_MIME_H */
ContentDisposition
Content-Disposition values.
Definition: mime.h:60
Unknown Content-Type.
Definition: mime.h:31
7-bit text
Definition: mime.h:49
Type: 'audio/*'.
Definition: mime.h:32
8-bit text
Definition: mime.h:50
Type: '*' or '.*'.
Definition: mime.h:40
Content is form-data.
Definition: mime.h:64
Type: 'video/*'.
Definition: mime.h:39
Content is attached.
Definition: mime.h:63
const char MimeSpecials[]
Characters that need special treatment in MIME.
Definition: mime.c:67
Base-64 encoded text.
Definition: mime.h:52
const int IndexHex[128]
Lookup table for ASCII hex digits.
Definition: mime.c:36
Type: 'text/*'.
Definition: mime.h:38
const char *const BodyTypes[]
Common MIME body types.
Definition: mime.c:51
Type: 'message/*'.
Definition: mime.h:35
Type: 'multipart/*'.
Definition: mime.h:37
No preferred disposition.
Definition: mime.h:65
const char *const BodyEncodings[]
Common MIME body encodings.
Definition: mime.c:59
Binary.
Definition: mime.h:53
Quoted-printable text.
Definition: mime.h:51
Type: 'model/*'.
Definition: mime.h:36
Type: 'image/*'.
Definition: mime.h:34
Content is inline.
Definition: mime.h:62
Encoding unknown.
Definition: mime.h:48
Type: 'application/*'.
Definition: mime.h:33
UUEncoded text.
Definition: mime.h:54
ContentEncoding
Content-Transfer-Encoding.
Definition: mime.h:46
ContentType
Content-Type.
Definition: mime.h:29