diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-02-10 21:19:34 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-02-10 21:19:34 +0000 |
commit | 15739ddd2345d227a16d18a3abfb740ae7c2ec0f (patch) | |
tree | bd608a8b9771d60c785a9cc84e297748960fe33d /send.c | |
parent | 25a768b966efe0f5570d6b6356b9752add6efb49 (diff) |
patch.mutt-0.95.1i.ld.signals.1: A major redesign of how child
processes are invoked. From Liviu.
Diffstat (limited to 'send.c')
-rw-r--r-- | send.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -832,7 +832,7 @@ static int send_message (HEADER *msg) i = mutt_invoke_sendmail (msg->env->to, msg->env->cc, msg->env->bcc, tempfile, (msg->content->encoding == ENC8BIT)); - return (i ? -1 : 0); + return (i); } /* rfc2047 encode the content-descriptions */ @@ -1327,7 +1327,7 @@ full_fcc: } #endif /* _PGPPATH */ - if (send_message (msg) == -1) + if ((i = send_message (msg)) == -1) { if (!(flags & SENDBATCH)) { @@ -1340,9 +1340,8 @@ full_fcc: goto cleanup; } } - - if (!option (OPTNOCURSES) && ! (flags & SENDMAILX)) - mutt_message _("Mail sent."); + else if (!option (OPTNOCURSES) && ! (flags & SENDMAILX)) + mutt_message (i == 0 ? _("Mail sent.") : _("Sending in background.")); if (flags & SENDREPLY) { |