dc37db2afff75a2cc9fa72dbb2c67359ed73579e
[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 #define MD5_FIELD       "Content-MD5"
14
15 #define isatom(c)   (!isspace (c) && !iscntrl (c) && (c) != '(' \
16                         && (c) != ')' && (c) != '<'  && (c) != '>' \
17                         && (c) != '@' && (c) != ','  && (c) != ';' \
18                         && (c) != ':' && (c) != '\\' && (c) != '"' \
19                         && (c) != '.' && (c) != '['  && (c) != ']')
20
21 /*
22 ** Test for valid characters used in "token"
23 ** as defined in RFC2045
24 */
25 #define istoken(c)  (!isspace (c) && !iscntrl (c) && (c) != '(' \
26                         && (c) != ')' && (c) != '<'  && (c) != '>' \
27                         && (c) != '@' && (c) != ','  && (c) != ';' \
28                         && (c) != ':' && (c) != '\\' && (c) != '"' \
29                         && (c) != '/' && (c) != '['  && (c) != ']' \
30                         && (c) != '?' && (c) != '=')
31
32 #define CPERLIN  76
33 #define BPERLIN  (CPERLIN / 4)