changeset: 7148:8aa66268b665 user: Kevin McCarthy <ke...@8t8.us> date: Mon Sep 04 13:26:55 2017 -0700 link: http://dev.mutt.org/hg/mutt/rev/8aa66268b665
Add warning about using inline pgp with format=flowed. (closes #3963) The reporter noted that when trying to use inline signing with format=flowed, the flowed was turned off. After some research, this appears to be deliberate, probably because of strange interactions between inline PGP and format=flowed. In fact the RFC strongly discourages their combined use: https://tools.ietf.org/html/rfc3676#section-4.6 Add a warning and prompt to use PGP/MIME in mutt_protect(). diffs (20 lines): diff -r 7ae5817b5eaf -r 8aa66268b665 crypt.c --- a/crypt.c Mon Sep 04 09:47:26 2017 -0700 +++ b/crypt.c Mon Sep 04 13:26:55 2017 -0700 @@ -153,6 +153,16 @@ return -1; } } + else if (!mutt_strcasecmp ("flowed", + mutt_get_parameter ("format", msg->content->parameter))) + { + if ((i = query_quadoption (OPT_PGPMIMEAUTO, + _("Inline PGP can't be used with format=flowed. Revert to PGP/MIME?"))) != MUTT_YES) + { + mutt_error _("Mail not sent: inline PGP can't be used with format=flowed."); + return -1; + } + } else { /* they really want to send it inline... go for it */