2 * Copyright notice from original mutt:
3 * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
5 * This file is part of mutt-ng, see http://www.muttng.org/.
6 * It's licensed under the GNU General Public License,
7 * please see the file GPL in the top level source directory.
24 /* Content-Transfer-Encoding */
35 /* Content-Disposition values */
42 /* MIME encoding/decoding global vars */
45 extern int Index_hex[];
46 extern int Index_64[];
47 extern char B64Chars[];
50 #define hexval(c) Index_hex[(unsigned int)(c)]
51 #define base64val(c) Index_64[(unsigned int)(c)]
53 #define is_multipart(x) \
54 ((x)->type == TYPEMULTIPART \
55 || ((x)->type == TYPEMESSAGE && (!strcasecmp((x)->subtype, "rfc822") \
56 || !strcasecmp((x)->subtype, "news"))))
58 extern const char *BodyTypes[];
59 extern const char *BodyEncodings[];
61 #define TYPE(X) ((X->type == TYPEOTHER) && (X->xtype != NULL) ? X->xtype : BodyTypes[(X->type)])
62 #define ENCODING(X) BodyEncodings[(X)]
64 /* other MIME-related global variables */
66 extern char MimeSpecials[];