]> granicus.if.org Git - neomutt/commitdiff
Force 7bit encoding for application/pgp-keys.
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 25 Apr 2002 12:53:37 +0000 (12:53 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 25 Apr 2002 12:53:37 +0000 (12:53 +0000)
sendlib.c

index 97c7c584031c2002ae049fa5ca616263a4443763..64a870609f736eec3cebc956e6215fbcca352408 100644 (file)
--- a/sendlib.c
+++ b/sendlib.c
@@ -1205,7 +1205,7 @@ static void mutt_set_encoding (BODY *b, CONTENT *info)
   if (b->type == TYPETEXT)
   {
     char *chsname = mutt_get_body_charset (send_charset, sizeof (send_charset), b);
-    if ((info->lobin && strncasecmp (chsname, "iso-2022", 8)) || info->linemax > 990 || (info->from && option (OPTENCODEFROM)))
+    if ((info->lobin && ascii_strncasecmp (chsname, "iso-2022", 8)) || info->linemax > 990 || (info->from && option (OPTENCODEFROM)))
       b->encoding = ENCQUOTEDPRINTABLE;
     else if (info->hibin)
       b->encoding = option (OPTALLOW8BIT) ? ENC8BIT : ENCQUOTEDPRINTABLE;
@@ -1224,6 +1224,8 @@ static void mutt_set_encoding (BODY *b, CONTENT *info)
     else
       b->encoding = ENC7BIT;
   }
+  else if (b->type == TYPEAPPLICATION && ascii_strcasecmp (b->subtype, "pgp-keys") == 0)
+    b->encoding = ENC7BIT;
   else
 #if 0
     if (info->lobin || info->hibin || info->binary || info->linemax > 990