aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2011-07-17 02:45:56 +0200
committerLars Magne Ingebrigtsen2011-07-17 02:45:56 +0200
commit4e190b801d917b3c5080442c1daba38020c3fe8c (patch)
treeea66f2d280b177de33377643b90009f22faf079e
parent64a465b2d97d00f27ed74513047ced07b798b9fd (diff)
downloademacs-4e190b801d917b3c5080442c1daba38020c3fe8c.tar.gz
emacs-4e190b801d917b3c5080442c1daba38020c3fe8c.zip
(smtpmail-via-smtp): Query the user for password if we get errors 550 to 554.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/mail/smtpmail.el9
2 files changed, 10 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 15f742ed91a..ae54b3733f6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-07-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * mail/smtpmail.el (smtpmail-via-smtp): Query the user for
4 password if we get errors 550 to 554.
5
12011-07-16 Lars Magne Ingebrigtsen <larsi@gnus.org> 62011-07-16 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 7
3 * net/gnutls.el (gnutls-log-level): Removed. 8 * net/gnutls.el (gnutls-log-level): Removed.
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el
index 073e2fa4a3c..cc46660712f 100644
--- a/lisp/mail/smtpmail.el
+++ b/lisp/mail/smtpmail.el
@@ -788,10 +788,11 @@ The list is in preference order.")
788 nil) 788 nil)
789 ((and auth-mechanisms 789 ((and auth-mechanisms
790 (not ask-for-password) 790 (not ask-for-password)
791 (= (car result) 550)) 791 (>= (car result) 550)
792 ;; We got a "550 relay not permitted", and the server 792 (<= (car result) 554))
793 ;; accepts credentials, so we try again, but ask for a 793 ;; We got a "550 relay not permitted" (or the like),
794 ;; password first. 794 ;; and the server accepts credentials, so we try
795 ;; again, but ask for a password first.
795 (smtpmail-send-command process "QUIT") 796 (smtpmail-send-command process "QUIT")
796 (smtpmail-read-response process) 797 (smtpmail-read-response process)
797 (delete-process process) 798 (delete-process process)