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