diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-07-20 04:38:56 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-07-20 04:38:56 +0000 |
commit | 9fff27c6dd65ad4995fa08bce2ff8daf268e5d62 (patch) | |
tree | 087b6c5b718e04cb748e95f62434730ba768fe4b /src | |
parent | c53d8de733d96c2ab089b582814e94cc0c3a45da (diff) |
ignore errors right after QUIT (workaround for Gmail SMTP server).
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1873 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r-- | src/send_message.c | 5 |
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 || |