--- ./Makefile 2016-03-31 21:57:02.000000000 +0200 +++ ./Makefile 2016-03-31 22:25:48.771840000 +0200 @@ -3,7 +3,7 @@ PORTNAME= mutt PORTVERSION= 1.5.24 -PORTREVISION?= 6 +PORTREVISION?= 7 CATEGORIES+= mail ipv6 MASTER_SITES= ftp://ftp.mutt.org/mutt/ \ ftp://ftp.fu-berlin.de/pub/unix/mail/mutt/ \ @@ -55,7 +55,7 @@ OPTIONS_UNSET= NLS DOCS EXAMPLES .else OPTIONS_DEFINE= COMPRESSED_FOLDERS SASL DEBUG DOCS EXAMPLES FLOCK \ - GPGME GREETING_PATCH HTML ICONV IDN IFDEF_PATCH \ + FORCEBASE64 GPGME GREETING_PATCH HTML ICONV IDN IFDEF_PATCH \ IMAP_HEADER_CACHE LOCALES_FIX MAILBOX_MANPAGES \ MAILDIR_HEADER_CACHE MAILDIR_MTIME_PATCH \ MIXMASTER NLS NNTP PARENT_CHILD_MATCH_PATCH \ @@ -73,6 +73,7 @@ SASL_DESC= SASL authentication DEBUG_DESC= Debugging capabilities FLOCK_DESC= flock() usage +FORCEBASE64_DESC= Option to force base64 encoding for compose GPGME_DESC= Gpgme interface GREETING_PATCH_DESC= Greeting support HTML_DESC= HTML documentation @@ -284,6 +285,9 @@ post-install-NNTP-on: ${INSTALL_DATA} ${WRKSRC}/ChangeLog.nntp ${STAGEDIR}${DOCSDIR} +post-patch-FORCEBASE64-on: + @${PATCH} ${PATCH_ARGS} -p1 < ${PATCHDIR}/extra-patch-forcebase64 + post-patch-GREETING_PATCH-on: @${PATCH} ${PATCH_ARGS} -p1 < ${PATCHDIR}/extra-patch-greeting --- ./files/extra-patch-forcebase64 1970-01-01 01:00:00.000000000 +0100 +++ ./files/extra-patch-forcebase64 2016-03-31 22:14:30.576295000 +0200 @@ -0,0 +1,37 @@ +--- mutt-1.5.24/init.h.orig 2016-03-31 22:09:51.864031000 +0200 ++++ mutt-1.5.24/init.h 2016-03-31 22:12:01.242952000 +0200 +@@ -838,6 +838,11 @@ + ** sent to both the list and your address, resulting in two copies + ** of the same email for you. + */ ++ { "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-1.5.24-orig/mutt.h 2015-08-30 19:06:38.000000000 +0200 ++++ mutt-1.5.24/mutt.h 2016-02-09 13:48:24.758051324 +0100 +@@ -339,6 +339,7 @@ enum + OPTFASTREPLY, + OPTFCCCLEAR, + OPTFOLLOWUPTO, ++ OPTFORCEBASE64, + OPTFORCENAME, + OPTFORWDECODE, + OPTFORWQUOTE, +--- mutt-1.5.24-orig/sendlib.c 2015-08-30 19:06:38.000000000 +0200 ++++ mutt-1.5.24/sendlib.c 2016-02-09 13:48:24.759051309 +0100 +@@ -1168,7 +1168,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;