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
......@@ -1313,10 +1313,18 @@ full_fcc:
#endif /* _PGPPATH */
if (send_message (msg) == -1)
{
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))
mutt_message _("Mail sent.");
......
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