+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).
(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