Ignore empty MIME parameter
authorPhilipp Takacs <philipp@bureaucracy.de>
Fri, 7 Aug 2015 13:22:23 +0000 (15:22 +0200)
committerPhilipp Takacs <philipp@bureaucracy.de>
Mon, 10 Aug 2015 08:33:59 +0000 (10:33 +0200)
If a message contains an empty parameter, we only produce a warning.

uip/mhparse.c

index 7a15b75..f520e03 100644 (file)
@@ -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++;