3 * mime.h -- definitions for MIME
8 #define VRSN_FIELD "MIME-Version"
9 #define VRSN_VALUE "1.0"
10 #define XXX_FIELD_PRF "Content-"
11 #define TYPE_FIELD "Content-Type"
12 #define ENCODING_FIELD "Content-Transfer-Encoding"
13 #define ID_FIELD "Content-ID"
14 #define DESCR_FIELD "Content-Description"
15 #define MD5_FIELD "Content-MD5"
17 #define isatom(c) (!isspace (c) && !iscntrl (c) && (c) != '(' \
18 && (c) != ')' && (c) != '<' && (c) != '>' \
19 && (c) != '@' && (c) != ',' && (c) != ';' \
20 && (c) != ':' && (c) != '\\' && (c) != '"' \
21 && (c) != '.' && (c) != '[' && (c) != ']')
24 * Test for valid characters used in "token"
25 * as defined in RFC2045
27 #define istoken(c) (!isspace (c) && !iscntrl (c) && (c) != '(' \
28 && (c) != ')' && (c) != '<' && (c) != '>' \
29 && (c) != '@' && (c) != ',' && (c) != ';' \
30 && (c) != ':' && (c) != '\\' && (c) != '"' \
31 && (c) != '/' && (c) != '[' && (c) != ']' \
32 && (c) != '?' && (c) != '=')
35 #define BPERLIN (CPERLIN / 4)
37 #define CPERMSG (LPERMSG * CPERLIN)