aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Josefsson2009-03-03 16:28:17 +0000
committerSimon Josefsson2009-03-03 16:28:17 +0000
commit9927d25059bbe990605a4e6bf8ad74946b0d575a (patch)
treeeaea5f5ec1a57ec1db68accc8f99aa1e150ff948
parent7bbab3e051d1d5911332ba4314aa2830c8d7af55 (diff)
downloademacs-9927d25059bbe990605a4e6bf8ad74946b0d575a.tar.gz
emacs-9927d25059bbe990605a4e6bf8ad74946b0d575a.zip
(smtpmail-auth-supported): Mention that list is
in preference order. (smtpmail-try-auth-methods): Improve which authentication mechanism to use, so that the locally most preferred and mutually supported mechanism is used.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/mail/smtpmail.el5
2 files changed, 11 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index eecf3ea0a66..8944b03af03 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12009-03-03 Simon Josefsson <simon@josefsson.org>
2
3 * mail/smtpmail.el (smtpmail-auth-supported): Mention that list is
4 in preference order.
5 (smtpmail-try-auth-methods): Improve which authentication
6 mechanism to use, so that the locally most preferred and mutually
7 supported mechanism is used.
8
12009-03-03 Stefan Monnier <monnier@iro.umontreal.ca> 92009-03-03 Stefan Monnier <monnier@iro.umontreal.ca>
2 10
3 * emacs-lisp/lisp.el (end-of-defun-function): Make it more clear that 11 * emacs-lisp/lisp.el (end-of-defun-function): Make it more clear that
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el
index 76c6d42b6dc..c849c7e9a69 100644
--- a/lisp/mail/smtpmail.el
+++ b/lisp/mail/smtpmail.el
@@ -218,7 +218,8 @@ This is relative to `smtpmail-queue-dir'."
218(defvar smtpmail-read-point) 218(defvar smtpmail-read-point)
219 219
220(defconst smtpmail-auth-supported '(cram-md5 plain login) 220(defconst smtpmail-auth-supported '(cram-md5 plain login)
221 "List of supported SMTP AUTH mechanisms.") 221 "List of supported SMTP AUTH mechanisms.
222The list is in preference order.")
222 223
223(defvar smtpmail-mail-address nil 224(defvar smtpmail-mail-address nil
224 "Value to use for envelope-from address for mail from ambient buffer.") 225 "Value to use for envelope-from address for mail from ambient buffer.")
@@ -534,7 +535,7 @@ This is relative to `smtpmail-queue-dir'."
534 535
535(defun smtpmail-try-auth-methods (process supported-extensions host port) 536(defun smtpmail-try-auth-methods (process supported-extensions host port)
536 (let* ((mechs (cdr-safe (assoc 'auth supported-extensions))) 537 (let* ((mechs (cdr-safe (assoc 'auth supported-extensions)))
537 (mech (car (smtpmail-intersection smtpmail-auth-supported mechs))) 538 (mech (car (smtpmail-intersection mechs smtpmail-auth-supported)))
538 (auth-user (auth-source-user-or-password 539 (auth-user (auth-source-user-or-password
539 "login" host (or port "smtp"))) 540 "login" host (or port "smtp")))
540 (auth-pass (auth-source-user-or-password 541 (auth-pass (auth-source-user-or-password