From 1e9a7f8082f2ea4b496827be6b9ebbc4ac145839 Mon Sep 17 00:00:00 2001 From: Philipp Takacs Date: Fri, 7 Aug 2015 15:22:23 +0200 Subject: [PATCH] Ignore empty MIME parameter If a message contains an empty parameter, we only produce a warning. --- uip/mhparse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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++; -- 1.7.10.4