Added -nocontentid (and -contentid, for symmetry) switch to mhbuild. This allows...
[mmh] / h / mime.h
1
2 /*
3  * mime.h -- definitions for MIME
4  *
5  * $Id$
6  */
7
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"
16
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) != ']')
22
23 /*
24  * Test for valid characters used in "token"
25  * as defined in RFC2045
26  */
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) != '=')
33
34 #define CPERLIN 76
35 #define BPERLIN (CPERLIN / 4)
36 #define LPERMSG 632
37 #define CPERMSG (LPERMSG * CPERLIN)
38