[PATCH] The problem was that the smtp code could return a value < -1 on error, and the
send.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
# HG changeset patch
# User Michael Elkins <me@xxxxxxxxxxx>
# Date 1274197518 25200
# Branch HEAD
# Node ID 9e6f1e443433ab67a458376e240fd031603d2f7f
# Parent 4cd2daafd03bfe9d8af1fa543baf873cd94e144f
The problem was that the smtp code could return a value < -1 on error, and the
code in the send-menu only considered -1 to be an error. With this patch, Mutt
should return to the send-menu if any error occurs.
Closes #3411.
diff --git a/send.c b/send.c
--- a/send.c
+++ b/send.c
@@ -1766,7 +1766,7 @@
* the send failed as well so we give the user a chance to fix the
* error.
*/
- if (fcc_error || (i = send_message (msg)) == -1)
+ if (fcc_error || (i = send_message (msg)) < 0)
{
if (!(flags & SENDBATCH))
{