Ignore wrong encoding in multipart/*
authorPhilipp Takacs <philipp@bureaucracy.de>
Tue, 4 Aug 2015 19:26:14 +0000 (21:26 +0200)
committerPhilipp Takacs <philipp@bureaucracy.de>
Mon, 10 Aug 2015 08:18:30 +0000 (10:18 +0200)
If a multipart message has an encoding other then
7bit or 8bit, 7bit encoding is assumed.

uip/mhparse.c

index fad75d7..7a15b75 100644 (file)
@@ -1035,7 +1035,7 @@ InitMultiPart(CT ct)
        if (ct->c_encoding != CE_7BIT && ct->c_encoding != CE_8BIT
                && ct->c_encoding != CE_BINARY) {
                admonish(NULL, "\"%s/%s\" type in message %s must be encoded in 7bit, 8bit, or binary", ci->ci_type, ci->ci_subtype, ct->c_file);
        if (ct->c_encoding != CE_7BIT && ct->c_encoding != CE_8BIT
                && ct->c_encoding != CE_BINARY) {
                admonish(NULL, "\"%s/%s\" type in message %s must be encoded in 7bit, 8bit, or binary", ci->ci_type, ci->ci_subtype, ct->c_file);
-               return NOTOK;
+               ct->c_encoding = CE_7BIT;
        }
 
        /* match subtype */
        }
 
        /* match subtype */