From 410217ef2c1184648e55b3f847183d378ef7d017 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Mon, 4 Jan 1999 12:52:19 +0000 Subject: [stable] When sending a message in batch mode failed, mutt would dump core. Patch from Byrial Jensen. --- send.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'send.c') 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)) -- cgit v1.2.3