]> diplodocus.org Git - nmh/blobdiff - uip/mhparse.c
"RFC-2045 to RFC-2049" instead of "thru".
[nmh] / uip / mhparse.c
index a80cc7460ca59a0401efd46f0c897dbcafe7e2db..69d2f2c848850d3a654fd577a1a53cbb4b34a2da 100644 (file)
@@ -37,10 +37,14 @@ int checksw = 0;    /* check Content-MD5 field */
 char *tmp;
 
 /*
 char *tmp;
 
 /*
- * Instruct parser not to detect invalid Content-Transfer-Encoding
- * in a multipart.
+ * These are for mhfixmsg to:
+ * 1) Instruct parser not to detect invalid Content-Transfer-Encoding
+ *    in a multipart.
+ * 2) Suppress the warning about bogus multipart content, and report it.
  */
 int skip_mp_cte_check;
  */
 int skip_mp_cte_check;
+int suppress_bogus_mp_content_warning;
+int bogus_mp_content;
 
 /*
  * Structures for TEXT messages
 
 /*
  * Structures for TEXT messages
@@ -1243,7 +1247,11 @@ end_part:
        }
     }
 
        }
     }
 
-    advise (NULL, "bogus multipart content in message %s", ct->c_file);
+    if (! suppress_bogus_mp_content_warning) {
+        advise (NULL, "bogus multipart content in message %s", ct->c_file);
+    }
+    bogus_mp_content = 1;
+
     if (!inout && part) {
        p = part->mp_part;
        p->c_end = ct->c_end;
     if (!inout && part) {
        p = part->mp_part;
        p->c_end = ct->c_end;