From: Thomas Roessler Date: Thu, 25 Apr 2002 12:53:37 +0000 (+0000) Subject: Force 7bit encoding for application/pgp-keys. X-Git-Tag: mutt-1-5-1-rel~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10bab7bc000c5d4dc55222b5b2c995a4ed525b8e;p=mutt Force 7bit encoding for application/pgp-keys. --- diff --git a/sendlib.c b/sendlib.c index 97c7c584..64a87060 100644 --- 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