]> granicus.if.org Git - mutt/commitdiff
Display mail sent message after Fcc finishes.
authorKevin McCarthy <kevin@8t8.us>
Fri, 21 Dec 2018 17:42:26 +0000 (09:42 -0800)
committerKevin McCarthy <kevin@8t8.us>
Fri, 21 Dec 2018 17:42:26 +0000 (09:42 -0800)
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!

send.c

diff --git a/send.c b/send.c
index 975425c9fea1a3f1347a44a811efe162e456f64c..610ef3a5a0a24c871109a3386390728b07925cfd 100644 (file)
--- a/send.c
+++ b/send.c
@@ -2042,12 +2042,12 @@ main_loop:
       goto cleanup;
     }
   }
-  else if (!option (OPTNOCURSES) && ! (flags & SENDMAILX))
-    mutt_message (i == 0 ? _("Mail sent.") : _("Sending in background."));
-
 
   save_fcc (msg, fcc, sizeof(fcc), clear_content, pgpkeylist, flags);
 
+  if (!option (OPTNOCURSES) && ! (flags & SENDMAILX))
+    mutt_message (i == 0 ? _("Mail sent.") : _("Sending in background."));
+
 
   if (WithCrypto && (msg->security & ENCRYPT))
     FREE (&pgpkeylist);