ports/mail/mutt/files/extra-patch-forcebase64-nntp
Adam Weinberger 9d95d69a95 Update VVV patch to support 1.9.0, and unbreak the NNTP option.
PR:		222244
Submitted by:	maintainer (dereks lifeofadishwasher com)
2017-09-12 02:29:53 +00:00

37 lines
1.3 KiB
Text

--- init.h.orig 2017-09-10 22:12:31 UTC
+++ init.h
@@ -911,6 +911,11 @@ struct option_t MuttVars[] = {
** message via mail.
*/
#endif
+ { "force_base64", DT_BOOL, R_NONE, OPTFORCEBASE64, 0 },
+ /*
+ ** .pp
+ ** If you need to encode all text parts to base64, set this option.
+ */
{ "force_name", DT_BOOL, R_NONE, OPTFORCENAME, 0 },
/*
** .pp
--- mutt.h.orig 2017-09-10 22:12:31 UTC
+++ mutt.h
@@ -379,6 +379,7 @@ enum
OPTFCCCLEAR,
OPTFLAGSAFE,
OPTFOLLOWUPTO,
+ OPTFORCEBASE64,
OPTFORCENAME,
OPTFORWDECODE,
OPTFORWQUOTE,
--- sendlib.c.orig 2017-09-10 22:12:31 UTC
+++ sendlib.c
@@ -1180,7 +1180,9 @@ static void mutt_set_encoding (BODY *b,
if (b->type == TYPETEXT)
{
char *chsname = mutt_get_body_charset (send_charset, sizeof (send_charset), b);
- if ((info->lobin && ascii_strncasecmp (chsname, "iso-2022", 8)) || info->linemax > 990 || (info->from && option (OPTENCODEFROM)))
+ if (option (OPTFORCEBASE64))
+ b->encoding = ENCBASE64;
+ else 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;