X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=h%2Fmime.h;h=22c23495e4809b6240a2cd9dc4957442e75273b0;hp=b741b2f250a011ca729cea1ba7cae8af445151cc;hb=d4bcca1aa235370bc20bc2734c0cd6f700b17871;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b diff --git a/h/mime.h b/h/mime.h index b741b2f..22c2349 100644 --- a/h/mime.h +++ b/h/mime.h @@ -1,38 +1,32 @@ - /* - * mime.h -- definitions for MIME - * - * $Id$ - */ +** mime.h -- definitions for MIME +*/ -#define VRSN_FIELD "MIME-Version" -#define VRSN_VALUE "1.0" -#define XXX_FIELD_PRF "Content-" -#define TYPE_FIELD "Content-Type" -#define ENCODING_FIELD "Content-Transfer-Encoding" -#define ID_FIELD "Content-ID" -#define DESCR_FIELD "Content-Description" -#define MD5_FIELD "Content-MD5" +#define VRSN_FIELD "MIME-Version" +#define VRSN_VALUE "1.0" +#define XXX_FIELD_PRF "Content-" +#define TYPE_FIELD "Content-Type" +#define ENCODING_FIELD "Content-Transfer-Encoding" +#define ID_FIELD "Content-ID" +#define DESCR_FIELD "Content-Description" +#define DISPO_FIELD "Content-Disposition" -#define isatom(c) (!isspace (c) && !iscntrl (c) && (c) != '(' \ - && (c) != ')' && (c) != '<' && (c) != '>' \ - && (c) != '@' && (c) != ',' && (c) != ';' \ - && (c) != ':' && (c) != '\\' && (c) != '"' \ - && (c) != '.' && (c) != '[' && (c) != ']') +#define isatom(c) (!isspace (c) && !iscntrl (c) && (c) != '(' \ + && (c) != ')' && (c) != '<' && (c) != '>' \ + && (c) != '@' && (c) != ',' && (c) != ';' \ + && (c) != ':' && (c) != '\\' && (c) != '"' \ + && (c) != '.' && (c) != '[' && (c) != ']') /* - * Test for valid characters used in "token" - * as defined in RFC2045 - */ -#define istoken(c) (!isspace (c) && !iscntrl (c) && (c) != '(' \ - && (c) != ')' && (c) != '<' && (c) != '>' \ - && (c) != '@' && (c) != ',' && (c) != ';' \ - && (c) != ':' && (c) != '\\' && (c) != '"' \ - && (c) != '/' && (c) != '[' && (c) != ']' \ - && (c) != '?' && (c) != '=') - -#define CPERLIN 76 -#define BPERLIN (CPERLIN / 4) -#define LPERMSG 632 -#define CPERMSG (LPERMSG * CPERLIN) +** Test for valid characters used in "token" +** as defined in RFC2045 +*/ +#define istoken(c) (!isspace (c) && !iscntrl (c) && (c) != '(' \ + && (c) != ')' && (c) != '<' && (c) != '>' \ + && (c) != '@' && (c) != ',' && (c) != ';' \ + && (c) != ':' && (c) != '\\' && (c) != '"' \ + && (c) != '/' && (c) != '[' && (c) != ']' \ + && (c) != '?' && (c) != '=') +#define CPERLIN 76 +#define BPERLIN (CPERLIN / 4)