summaryrefslogtreecommitdiffstats
path: root/send.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-02-10 21:19:34 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-02-10 21:19:34 +0000
commit15739ddd2345d227a16d18a3abfb740ae7c2ec0f (patch)
treebd608a8b9771d60c785a9cc84e297748960fe33d /send.c
parent25a768b966efe0f5570d6b6356b9752add6efb49 (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.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/send.c b/send.c
index 743ad15f..9f0e301d 100644
--- a/send.c
+++ b/send.c
@@ -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)
{