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.
23 /* Content-Transfer-Encoding */
34 /* Content-Disposition values */
41 /* MIME encoding/decoding global vars */
44 extern int Index_hex[];
45 extern int Index_64[];
46 extern char B64Chars[];
49 #define hexval(c) Index_hex[(unsigned int)(c)]
50 #define base64val(c) Index_64[(unsigned int)(c)]
52 #define is_multipart(x) \
53 ((x)->type == TYPEMULTIPART \
54 || ((x)->type == TYPEMESSAGE && (!strcasecmp((x)->subtype, "rfc822") \
55 || !strcasecmp((x)->subtype, "news"))))
57 extern const char *BodyTypes[];
58 extern const char *BodyEncodings[];
60 #define TYPE(X) ((X->type == TYPEOTHER) && (X->xtype != NULL) ? X->xtype : BodyTypes[(X->type)])
61 #define ENCODING(X) BodyEncodings[(X)]
63 /* other MIME-related global variables */
65 extern char MimeSpecials[];