NeoMutt  2020-06-26-250-g349c94
Teaching an old dog new tricks
DOXYGEN
mime.c
Go to the documentation of this file.
1 
29 #include "config.h"
30 #include "mime.h"
31 
32 // clang-format off
36 const int IndexHex[128] = {
37  -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
38  -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
39  -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
40  0, 1, 2, 3, 4, 5, 6, 7, 8, 9,-1,-1, -1,-1,-1,-1,
41  -1,10,11,12, 13,14,15,-1, -1,-1,-1,-1, -1,-1,-1,-1,
42  -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
43  -1,10,11,12, 13,14,15,-1, -1,-1,-1,-1, -1,-1,-1,-1,
44  -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1
45 };
46 // clang-format on
47 
51 const char *const BodyTypes[] = {
52  "x-unknown", "audio", "application", "image", "message",
53  "model", "multipart", "text", "video", "*",
54 };
55 
59 const char *const BodyEncodings[] = {
60  "x-unknown", "7bit", "8bit", "quoted-printable",
61  "base64", "binary", "x-uuencoded",
62 };
63 
67 const char MimeSpecials[] = "@.,;:<>[]\\\"()?/= \t";
const int IndexHex[128]
Lookup table for ASCII hex digits.
Definition: mime.c:36
const char *const BodyTypes[]
Common MIME body types.
Definition: mime.c:51
Constants and macros for managing MIME encoding.
const char MimeSpecials[]
Characters that need special treatment in MIME.
Definition: mime.c:67
const char *const BodyEncodings[]
Common MIME body encodings.
Definition: mime.c:59