Revision 12455,
1.2 KB
checked in by danw, 26 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r12454,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | |
---|
2 | /* |
---|
3 | * mime.h -- definitions for MIME |
---|
4 | * |
---|
5 | * $Id: mime.h,v 1.1.1.1 1999-02-07 18:14:06 danw Exp $ |
---|
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 | |
---|
Note: See
TracBrowser
for help on using the repository browser.