X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/d6b2ae5fa68b9a82ffc006c233aef64c5cdb3bd2..63621a81d16ab743de6b57d47578a9a2c670ad22:/h/mime.h diff --git a/h/mime.h b/h/mime.h index 9fcaf5d3..e389b284 100644 --- a/h/mime.h +++ b/h/mime.h @@ -1,6 +1,4 @@ - -/* - * mime.h -- definitions for MIME +/* mime.h -- definitions for MIME */ #define VRSN_FIELD "MIME-Version" @@ -12,17 +10,11 @@ #define DESCR_FIELD "Content-Description" #define DISPO_FIELD "Content-Disposition" #define MD5_FIELD "Content-MD5" -#define PSEUDOHEADER_PREFIX "Nmh-" -#define ATTACH_FIELD PSEUDOHEADER_PREFIX "Attach" -#define ATTACH_FIELD_ALT "Attach" - -#define isatom(c) (isascii((unsigned char) c) \ - && !isspace ((unsigned char) c) \ - && !iscntrl ((unsigned char) c) && (c) != '(' \ - && (c) != ')' && (c) != '<' && (c) != '>' \ - && (c) != '@' && (c) != ',' && (c) != ';' \ - && (c) != ':' && (c) != '\\' && (c) != '"' \ - && (c) != '.' && (c) != '[' && (c) != ']') +#define PSEUDOHEADER_PREFIX "Nmh-" +#define ATTACH_FIELD PSEUDOHEADER_PREFIX "Attach" +#define ATTACH_FIELD_ALT "Attach" +#define MHBUILD_FILE_PSEUDOHEADER PSEUDOHEADER_PREFIX "mhbuild-file-" +#define MHBUILD_ARGS_PSEUDOHEADER PSEUDOHEADER_PREFIX "mhbuild-args-" /* * Test for valid characters used in "token" @@ -57,4 +49,3 @@ #define BPERLIN (CPERLIN / 4) #define LPERMSG 632 #define CPERMSG (LPERMSG * CPERLIN) -