2 ** mime.h -- definitions for MIME
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"
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) != ']')
21 ** Test for valid characters used in "token"
22 ** as defined in RFC2045
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) != '=')
32 #define BPERLIN (CPERLIN / 4)