]> granicus.if.org Git - mutt/commitdiff
Sleep $sleep_time after displaying "mail sent" message.
authorKevin McCarthy <kevin@8t8.us>
Tue, 1 Jan 2019 19:24:11 +0000 (11:24 -0800)
committerKevin McCarthy <kevin@8t8.us>
Tue, 1 Jan 2019 19:24:11 +0000 (11:24 -0800)
In case returning the index displays some kind of error right away, to
give time to see the success message.

send.c

diff --git a/send.c b/send.c
index 7d5401e59f390b39b7ff56cb091cadbc2922c71b..d4b608b396d308e2931dcae9feaa4831cddc25f1 100644 (file)
--- a/send.c
+++ b/send.c
@@ -2057,7 +2057,10 @@ main_loop:
   save_fcc (msg, fcc, sizeof(fcc), clear_content, pgpkeylist, flags);
 
   if (!option (OPTNOCURSES) && ! (flags & SENDMAILX))
+  {
     mutt_message (i == 0 ? _("Mail sent.") : _("Sending in background."));
+    mutt_sleep (0);
+  }
 
 
   if (WithCrypto)