Andreas Krennmair:
[apps/madmutt.git] / rfc2231.c
index ad03be9..3e49484 100644 (file)
--- a/rfc2231.c
+++ b/rfc2231.c
@@ -117,6 +117,11 @@ void rfc2231_decode_parameters (PARAMETER **headp)
 
       if (option (OPTRFC2047PARAMS) && p->value && strstr (p->value, "=?"))
        rfc2047_decode (&p->value);
 
       if (option (OPTRFC2047PARAMS) && p->value && strstr (p->value, "=?"))
        rfc2047_decode (&p->value);
+      else if (!option (OPTSTRICTMIME))
+      {
+        if (ascii_strcasecmp (AssumedCharset, "us-ascii"))
+          mutt_convert_nonmime_string (&p->value);
+      }
 
       *last = p;
       last = &p->next;
 
       *last = p;
       last = &p->next;