Commit 5d5ac8ec authored by Lars Magne Ingebrigtsen's avatar Lars Magne Ingebrigtsen
Browse files

(smtpmail-via-smtp): Ignore errors that arise when sending QUIT.

Fixes: debbugs:9312
parent 7debb7d8
2011-09-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
* mail/smtpmail.el (smtpmail-via-smtp): Ignore errors that arise
when sending QUIT (bug#9312).
2011-09-17 Chong Yidong <cyd@stupidchicken.com>
* replace.el (occur-mode-map): Rebind occur-edit-mode to "e" (Bug#8463).
......
......@@ -773,8 +773,12 @@ The list is in preference order.")
(eq (car result) 530))
;; We got a "530 auth required", so we close and try
;; again, this time asking the user for a password.
(smtpmail-send-command process "QUIT")
(smtpmail-read-response process)
;; We ignore any errors here, because some MTAs just
;; close the connection immediately after giving the
;; error message.
(ignore-errors
(smtpmail-send-command process "QUIT")
(smtpmail-read-response process))
(delete-process process)
(setq process nil)
(throw 'done
......
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