]> granicus.if.org Git - neomutt/commitdiff
Properly revert on an autocrypt postpone failure
authorKevin McCarthy <kevin@8t8.us>
Sat, 31 Aug 2019 20:36:28 +0000 (13:36 -0700)
committerRichard Russon <rich@flatcap.org>
Tue, 1 Oct 2019 10:23:23 +0000 (11:23 +0100)
Co-authored-by: Austin Ray <austin@austinray.io>
send.c

diff --git a/send.c b/send.c
index 95b35a4ae7fa19beed9ab7db7bd520f35281aa21..0c2f5e9b2969bb3273eb4f3b16891935e62e4e37 100644 (file)
--- a/send.c
+++ b/send.c
@@ -1767,7 +1767,11 @@ static int postpone_message(struct Email *e_post, struct Email *e_cur, char *fcc
     if (e_post->security & SEC_AUTOCRYPT)
     {
       if (mutt_autocrypt_set_sign_as_default_key(e_post))
+      {
+        e_post->content = mutt_remove_multipart(e_post->content);
+        decode_descriptions(e_post->content);
         return -1;
+      }
       encrypt_as = AutocryptDefaultKey;
     }
 #endif