]>
diplodocus.org Git - nmh/blob - h/mime.h
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) (isascii((unsigned char) c) \
17 && !isspace ((unsigned char) c) \
18 && !iscntrl ((unsigned char) c) && (c) != '(' \
19 && (c) != ')' && (c) != '<' && (c) != '>' \
20 && (c) != '@' && (c) != ',' && (c) != ';' \
21 && (c) != ':' && (c) != '\\' && (c) != '"' \
22 && (c) != '.' && (c) != '[' && (c) != ']')
25 * Test for valid characters used in "token"
26 * as defined in RFC2045
28 #define istoken(c) (isascii((unsigned char) c) \
29 && !isspace ((unsigned char) c) \
30 && !iscntrl ((unsigned char) c) && (c) != '(' \
31 && (c) != ')' && (c) != '<' && (c) != '>' \
32 && (c) != '@' && (c) != ',' && (c) != ';' \
33 && (c) != ':' && (c) != '\\' && (c) != '"' \
34 && (c) != '/' && (c) != '[' && (c) != ']' \
35 && (c) != '?' && (c) != '=')
38 #define BPERLIN (CPERLIN / 4)
40 #define CPERMSG (LPERMSG * CPERLIN)