diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-01-04 12:52:19 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-01-04 12:52:19 +0000 |
commit | 410217ef2c1184648e55b3f847183d378ef7d017 (patch) | |
tree | 130277e458ed685f806188424abd084de745f7be /send.c | |
parent | 59ab5b8a8aa0588d68e86f3274e14fb2e97252aa (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.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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)) |