diff options
| author | Lars Magne Ingebrigtsen | 2011-07-17 02:45:56 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2011-07-17 02:45:56 +0200 |
| commit | 4e190b801d917b3c5080442c1daba38020c3fe8c (patch) | |
| tree | ea66f2d280b177de33377643b90009f22faf079e | |
| parent | 64a465b2d97d00f27ed74513047ced07b798b9fd (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mail/smtpmail.el | 9 |
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 @@ | |||
| 1 | 2011-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 | |||
| 1 | 2011-07-16 Lars Magne Ingebrigtsen <larsi@gnus.org> | 6 | 2011-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) |