X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=rfc2231.c;h=3e4948497b95a7f5fd6e0083cb3be6637fcf593c;hp=3f45650831a5ad8b62e8d8267d9078647928e42d;hb=58fbf95737a7601f6e139e39b9f69d102c7e858d;hpb=6833ce8bdca2d64e14485118f2a4417b7e1cb1b1 diff --git a/rfc2231.c b/rfc2231.c index 3f45650..3e49484 100644 --- a/rfc2231.c +++ b/rfc2231.c @@ -29,6 +29,10 @@ * */ +#if HAVE_CONFIG_H +# include "config.h" +#endif + #include "mutt.h" #include "mime.h" #include "charset.h" @@ -113,6 +117,11 @@ void rfc2231_decode_parameters (PARAMETER **headp) 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;