summaryrefslogtreecommitdiffstats
path: root/send.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-01-04 12:52:19 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-01-04 12:52:19 +0000
commit410217ef2c1184648e55b3f847183d378ef7d017 (patch)
tree130277e458ed685f806188424abd084de745f7be /send.c
parent59ab5b8a8aa0588d68e86f3274e14fb2e97252aa (diff)
[stable] When sending a message in batch mode failed, mutt would
dump core. Patch from Byrial Jensen.
Diffstat (limited to 'send.c')
-rw-r--r--send.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/send.c b/send.c
index ca3fb176..a27654ca 100644
--- a/send.c
+++ b/send.c
@@ -1314,8 +1314,16 @@ full_fcc:
if (send_message (msg) == -1)
{
- msg->content = mutt_remove_multipart (msg->content);
- goto main_loop;
+ if (!(flags & SENDBATCH))
+ {
+ msg->content = mutt_remove_multipart (msg->content);
+ goto main_loop;
+ }
+ else
+ {
+ puts _("Could not send the message.");
+ goto cleanup;
+ }
}
if (!option (OPTNOCURSES) && ! (flags & SENDMAILX))