From acf924026cfc65f54a71a1c6aea895efa61317f6 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Tue, 9 May 2000 20:19:28 +0000 Subject: [PATCH] more mailtool brain-damage support. --- parse.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 */ -- 2.40.0