X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/d0bd14488c8392bcbbaa444759bae9c735178475..1316c8d619a6de50544da7c8435d2f6d6045da54:/uip/mhparse.c?ds=inline diff --git a/uip/mhparse.c b/uip/mhparse.c index a80cc746..69d2f2c8 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -37,10 +37,14 @@ int checksw = 0; /* check Content-MD5 field */ 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 suppress_bogus_mp_content_warning; +int bogus_mp_content; /* * 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;