]> diplodocus.org Git - nmh/blobdiff - h/mime.h
Reverted commit a2b00e7053ca3be3d1389588580c71498222a267. It caused
[nmh] / h / mime.h
index fad1cf8822e614e4f86619af89cba26ca5ff23df..9fcaf5d3ba956351675dbff315353e1b78da1fa6 100644 (file)
--- a/h/mime.h
+++ b/h/mime.h
@@ -12,7 +12,9 @@
 #define        DESCR_FIELD     "Content-Description"
 #define        DISPO_FIELD     "Content-Disposition"
 #define        MD5_FIELD       "Content-MD5"
-#define        ATTACH_FIELD    "Attach"
+#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) \
@@ -46,7 +48,8 @@
 
 #define isparamencode(c)  (!isascii((unsigned char) c) || \
                           iscntrl((unsigned char) c) || istspecial(c) || \
-                          (c) == '*' || (c) == '\'' || (c) == '%')
+                          (c) == ' ' || (c) == '*' || (c) == '\'' || \
+                          (c) == '%')
 
 #define        MAXTEXTPERLN 78
 #define        MAXLONGLINE 998