2 * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34 /* Content-Transfer-Encoding */
46 /* Content-Disposition values */
54 /* MIME encoding/decoding global vars */
57 extern int Index_hex[];
58 extern int Index_64[];
59 extern char B64Chars[];
62 #define hexval(c) Index_hex[(unsigned int)(c)]
63 #define base64val(c) Index_64[(unsigned int)(c)]
65 #define is_multipart(x) \
66 ((x)->type == TYPEMULTIPART \
67 || ((x)->type == TYPEMESSAGE && (!strcasecmp((x)->subtype, "rfc822") \
68 || !strcasecmp((x)->subtype, "news"))))
70 extern const char *BodyTypes[];
71 extern const char *BodyEncodings[];
73 #define TYPE(X) ((X->type == TYPEOTHER) && (X->xtype != NULL) ? X->xtype : BodyTypes[(X->type)])
74 #define ENCODING(X) BodyEncodings[(X)]
76 /* other MIME-related global variables */
78 extern char MimeSpecials[];