23#ifndef MUTT_EMAIL_MIME_H
24#define MUTT_EMAIL_MIME_H
69#define MUTT_MIME_MAX_DEPTH 50
70#define MUTT_MIME_MAX_PARTS 500
80#define hexval(ch) IndexHex[(unsigned int) (ch)]
82#define is_multipart(body) \
83 (((body)->type == TYPE_MULTIPART) || \
84 (((body)->type == TYPE_MESSAGE) && ((body)->subtype) && \
85 ((strcasecmp((body)->subtype, "rfc822") == 0) || \
86 (strcasecmp((body)->subtype, "news") == 0) || \
87 (strcasecmp((body)->subtype, "global") == 0))))
90 ((body->type == TYPE_OTHER) && body->xtype ? body->xtype : BodyTypes[(body->type)])
92#define ENCODING(x) BodyEncodings[(x)]
ContentEncoding
Content-Transfer-Encoding.
@ ENC_UUENCODED
UUEncoded text.
@ ENC_OTHER
Encoding unknown.
@ ENC_BASE64
Base-64 encoded text.
@ ENC_QUOTED_PRINTABLE
Quoted-printable text.
@ TYPE_AUDIO
Type: 'audio/*'.
@ TYPE_IMAGE
Type: 'image/*'.
@ TYPE_OTHER
Unknown Content-Type.
@ TYPE_MESSAGE
Type: 'message/*'.
@ TYPE_MODEL
Type: 'model/*'.
@ TYPE_MULTIPART
Type: 'multipart/*'.
@ TYPE_APPLICATION
Type: 'application/*'.
@ TYPE_TEXT
Type: 'text/*'.
@ TYPE_ANY
Type: '*' or '.*'.
@ TYPE_VIDEO
Type: 'video/*'.
ContentDisposition
Content-Disposition values.
@ DISP_ATTACH
Content is attached.
@ DISP_INLINE
Content is inline.
@ DISP_NONE
No preferred disposition.
@ DISP_FORM_DATA
Content is form-data.
const char MimeSpecials[]
Characters that need special treatment in MIME.
const char *const BodyTypes[]
Common MIME body types.
const int IndexHex[128]
Lookup table for ASCII hex digits.
const char *const BodyEncodings[]
Common MIME body encodings.