]> granicus.if.org Git - mutt/commitdiff
Don't use the 7bit encoding for non-text MIME types. This may
authorThomas Roessler <roessler@does-not-exist.org>
Fri, 24 Aug 2001 08:07:42 +0000 (08:07 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Fri, 24 Aug 2001 08:07:42 +0000 (08:07 +0000)
produce slightly longer messages, but it helps to avoid corruption
with binary attachments which look like text, but aren't.

sendlib.c

index 03adda66b9264bba0e9c4e63d07c704d61fee2d2..022fbd25ecfc3224066bf2afdd852cc7942f5089 100644 (file)
--- a/sendlib.c
+++ b/sendlib.c
@@ -1195,8 +1195,11 @@ static void mutt_set_encoding (BODY *b, CONTENT *info)
     else
       b->encoding = ENC7BIT;
   }
-  else if (info->lobin || info->hibin || info->binary || info->linemax > 990
+  else
+#if 0
+    if (info->lobin || info->hibin || info->binary || info->linemax > 990
           || info->cr || (/* option (OPTENCODEFROM) && */ info->from))
+#endif
   {
     /* Determine which encoding is smaller  */
     if (1.33 * (float)(info->lobin+info->hibin+info->ascii) < 
@@ -1205,8 +1208,10 @@ static void mutt_set_encoding (BODY *b, CONTENT *info)
     else
       b->encoding = ENCQUOTEDPRINTABLE;
   }
+#if 0
   else
     b->encoding = ENC7BIT;
+#endif
 }
 
 void mutt_stamp_attachment(BODY *a)