]> granicus.if.org Git - mutt/commitdiff
more mailtool brain-damage support.
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 9 May 2000 20:19:28 +0000 (20:19 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 9 May 2000 20:19:28 +0000 (20:19 +0000)
parse.c

diff --git a/parse.c b/parse.c
index c4a021725dcd02e541a54a16c285abdd516a2264..7564f07149c5b39ccd2f5642f2cf54c7eab469bb 100644 (file)
--- 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 */