]> granicus.if.org Git - neomutt/commitdiff
Display mail sent message after Fcc finishes
authorKevin McCarthy <kevin@8t8.us>
Fri, 21 Dec 2018 17:42:26 +0000 (09:42 -0800)
committerRichard Russon <rich@flatcap.org>
Mon, 7 Jan 2019 15:09:41 +0000 (15:09 +0000)
For the case of IMAP, the uploading message would otherwise stay on
the screen.  In any case, it's best to show that message as the last
thing before returning to the index.

Thanks to chdiza for reporting the issue!

Co-authored-by: Richard Russon <rich@flatcap.org>
send.c

diff --git a/send.c b/send.c
index 56d8d18bad9d0ad8fb88497d6fcc36fa9b0fb276..ff2911a378fb7a859e7ec7a55866a7c207539e2e 100644 (file)
--- a/send.c
+++ b/send.c
@@ -2449,7 +2449,10 @@ int ci_send_message(int flags, struct Email *msg, const char *tempfile,
       goto cleanup;
     }
   }
-  else if (!OptNoCurses && !(flags & SEND_MAILX))
+
+  save_fcc(msg, fcc, sizeof(fcc), clear_content, pgpkeylist, flags, &finalpath);
+
+  if (!OptNoCurses && !(flags & SEND_MAILX))
   {
     mutt_message(i != 0 ? _("Sending in background") :
                           (flags & SEND_NEWS) ? _("Article posted") : /* USE_NNTP */
@@ -2460,8 +2463,6 @@ int ci_send_message(int flags, struct Email *msg, const char *tempfile,
 #endif
   }
 
-  save_fcc(msg, fcc, sizeof(fcc), clear_content, pgpkeylist, flags, &finalpath);
-
   if ((WithCrypto != 0) && (msg->security & ENCRYPT))
     FREE(&pgpkeylist);