aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2011-08-21 22:10:29 +0200
committerLars Magne Ingebrigtsen2011-08-21 22:10:29 +0200
commite7f2c178da01a77d782aedae40f5578a48ddedba (patch)
tree91d157c9479f3915b4a26f613f062c32cd08e6b0
parentc65c96228e787f20a7a0fb35657517931d881df5 (diff)
downloademacs-e7f2c178da01a77d782aedae40f5578a48ddedba.tar.gz
emacs-e7f2c178da01a77d782aedae40f5578a48ddedba.zip
(smtpmail-try-auth-methods): Expand the secret password.
-rw-r--r--lisp/ChangeLog1
-rw-r--r--lisp/mail/smtpmail.el2
2 files changed, 3 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7fb9f323950..f247abdd468 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -3,6 +3,7 @@
3 * mail/smtpmail.el (smtpmail-via-smtp): Only bind 3 * mail/smtpmail.el (smtpmail-via-smtp): Only bind
4 `coding-system-for-*' around the process open call to avoid 4 `coding-system-for-*' around the process open call to avoid
5 auth-source side effects. 5 auth-source side effects.
6 (smtpmail-try-auth-methods): Expand the secret password.
6 7
72011-08-21 Chong Yidong <cyd@stupidchicken.com> 82011-08-21 Chong Yidong <cyd@stupidchicken.com>
8 9
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el
index 381af3b963a..f905eea8405 100644
--- a/lisp/mail/smtpmail.el
+++ b/lisp/mail/smtpmail.el
@@ -505,6 +505,8 @@ The list is in preference order.")
505 (save-function (and ask-for-password 505 (save-function (and ask-for-password
506 (plist-get auth-info :save-function))) 506 (plist-get auth-info :save-function)))
507 ret) 507 ret)
508 (when (functionp password)
509 (setq password (funcall password)))
508 (when (and user 510 (when (and user
509 (not password)) 511 (not password))
510 ;; The user has stored the user name, but not the password, so 512 ;; The user has stored the user name, but not the password, so