Removed RFC 1864 (Content-MD5) support. I.e. -check switches.
[mmh] / h / mime.h
1 /*
2 ** mime.h -- definitions for MIME
3 */
4
5 #define VRSN_FIELD      "MIME-Version"
6 #define VRSN_VALUE      "1.0"
7 #define XXX_FIELD_PRF   "Content-"
8 #define TYPE_FIELD      "Content-Type"
9 #define ENCODING_FIELD  "Content-Transfer-Encoding"
10 #define ID_FIELD        "Content-ID"
11 #define DESCR_FIELD     "Content-Description"
12 #define DISPO_FIELD     "Content-Disposition"
13
14 #define isatom(c)   (!isspace (c) && !iscntrl (c) && (c) != '(' \
15                         && (c) != ')' && (c) != '<'  && (c) != '>' \
16                         && (c) != '@' && (c) != ','  && (c) != ';' \
17                         && (c) != ':' && (c) != '\\' && (c) != '"' \
18                         && (c) != '.' && (c) != '['  && (c) != ']')
19
20 /*
21 ** Test for valid characters used in "token"
22 ** as defined in RFC2045
23 */
24 #define istoken(c)  (!isspace (c) && !iscntrl (c) && (c) != '(' \
25                         && (c) != ')' && (c) != '<'  && (c) != '>' \
26                         && (c) != '@' && (c) != ','  && (c) != ';' \
27                         && (c) != ':' && (c) != '\\' && (c) != '"' \
28                         && (c) != '/' && (c) != '['  && (c) != ']' \
29                         && (c) != '?' && (c) != '=')
30
31 #define CPERLIN  76
32 #define BPERLIN  (CPERLIN / 4)