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