#define DESCR_FIELD "Content-Description"
#define DISPO_FIELD "Content-Disposition"
#define MD5_FIELD "Content-MD5"
+#define ATTACH_FIELD "Attach"
-#define isatom(c) (!isspace (c) && !iscntrl (c) && (c) != '(' \
+#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) != '"' \
* Test for valid characters used in "token"
* as defined in RFC2045
*/
-#define istoken(c) (!isspace (c) && !iscntrl (c) && (c) != '(' \
+#define istoken(c) (isascii((unsigned char) c) \
+ && !isspace ((unsigned char) c) \
+ && !iscntrl ((unsigned char) c) && (c) != '(' \
&& (c) != ')' && (c) != '<' && (c) != '>' \
&& (c) != '@' && (c) != ',' && (c) != ';' \
&& (c) != ':' && (c) != '\\' && (c) != '"' \