From: Thomas Roessler Date: Tue, 9 May 2000 20:19:28 +0000 (+0000) Subject: more mailtool brain-damage support. X-Git-Tag: mutt-1-3-1-rel~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=acf924026cfc65f54a71a1c6aea895efa61317f6;p=mutt more mailtool brain-damage support. --- diff --git a/parse.c b/parse.c index c4a02172..7564f071 100644 --- a/parse.c +++ b/parse.c @@ -280,8 +280,15 @@ void mutt_parse_content_type (char *s, BODY *ct) /* Some pre-RFC1521 gateways still use the "name=filename" convention, * but if a filename has already been set in the content-disposition, * let that take precedence, and don't set it here */ - if ((pc = mutt_get_parameter("name", ct->parameter)) != 0 && !ct->filename) + if ((pc = mutt_get_parameter( "name", ct->parameter)) != 0 && !ct->filename) ct->filename = safe_strdup(pc); + +#ifdef SUN_ATTACHMENT + /* this is deep and utter perversion */ + if ((pc = mutt_get_parameter ("conversions", ct->parameter)) != 0) + ct->encoding = mutt_check_encoding (pc); +#endif + } /* Now get the subtype */