From: Philipp Takacs Date: Fri, 7 Aug 2015 13:22:23 +0000 (+0200) Subject: Ignore empty MIME parameter X-Git-Tag: mmh-0.2-RC1~32^2~1 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=1e9a7f8082f2ea4b496827be6b9ebbc4ac145839;p=mmh Ignore empty MIME parameter If a message contains an empty parameter, we only produce a warning. --- diff --git a/uip/mhparse.c b/uip/mhparse.c index 7a15b75..f520e03 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -766,7 +766,9 @@ bad_quote: } if (!*vp) { advise(NULL, "invalid parameter in message %s's %s: field\n%*.*s(parameter %s)", ct->c_file, TYPE_FIELD, i, i, "", *ap); - return NOTOK; + *ci->ci_values[ap - ci->ci_attrs] = '\0'; + *ci->ci_attrs[ap - ci->ci_attrs] = '\0'; + continue; } ap++;