Commit 410217ef authored by Thomas Roessler's avatar Thomas Roessler

[stable] When sending a message in batch mode failed, mutt would

dump core.  Patch from Byrial Jensen.
parent 59ab5b8a
...@@ -1314,8 +1314,16 @@ full_fcc: ...@@ -1314,8 +1314,16 @@ full_fcc:
if (send_message (msg) == -1) if (send_message (msg) == -1)
{ {
msg->content = mutt_remove_multipart (msg->content); if (!(flags & SENDBATCH))
goto main_loop; {
msg->content = mutt_remove_multipart (msg->content);
goto main_loop;
}
else
{
puts _("Could not send the message.");
goto cleanup;
}
} }
if (!option (OPTNOCURSES) && ! (flags & SENDMAILX)) if (!option (OPTNOCURSES) && ! (flags & SENDMAILX))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment