+2011-07-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
+
+ * mail/smtpmail.el (smtpmail-via-smtp): Query the user for
+ password if we get errors 550 to 554.
+
2011-07-16 Lars Magne Ingebrigtsen <larsi@gnus.org>
* net/gnutls.el (gnutls-log-level): Removed.
nil)
((and auth-mechanisms
(not ask-for-password)
- (= (car result) 550))
- ;; We got a "550 relay not permitted", and the server
- ;; accepts credentials, so we try again, but ask for a
- ;; password first.
+ (>= (car result) 550)
+ (<= (car result) 554))
+ ;; We got a "550 relay not permitted" (or the like),
+ ;; and the server accepts credentials, so we try
+ ;; again, but ask for a password first.
(smtpmail-send-command process "QUIT")
(smtpmail-read-response process)
(delete-process process)