aboutsummaryrefslogtreecommitdiff
path: root/src/send_message.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/send_message.c')
-rw-r--r--src/send_message.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/send_message.c b/src/send_message.c
index a0c93c94..93b76215 100644
--- a/src/send_message.c
+++ b/src/send_message.c
@@ -755,6 +755,11 @@ static gint send_message_smtp(PrefsAccount *ac_prefs, GSList *to_list, FILE *fp)
/* consider EOF right after QUIT successful */
log_warning("%s\n", _("Connection closed by the remote host."));
ret = 0;
+ } else if (session->state == SESSION_ERROR &&
+ SMTP_SESSION(session)->state == SMTP_QUIT) {
+ /* ignore errors right after QUIT */
+ log_warning("%s\n", _("Error occurred after QUIT command (ignored)"));
+ ret = 0;
} else if (session->state == SESSION_ERROR ||
session->state == SESSION_EOF ||
session->state == SESSION_TIMEOUT ||