summaryrefslogtreecommitdiff
path: root/lisp/mail/smtpmail.el
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen <larsi@gnus.org>2011-08-21 22:10:29 +0200
committerLars Magne Ingebrigtsen <larsi@gnus.org>2011-08-21 22:10:29 +0200
commite7f2c178da01a77d782aedae40f5578a48ddedba (patch)
tree91d157c9479f3915b4a26f613f062c32cd08e6b0 /lisp/mail/smtpmail.el
parentc65c96228e787f20a7a0fb35657517931d881df5 (diff)
downloademacs-e7f2c178da01a77d782aedae40f5578a48ddedba.tar.gz
(smtpmail-try-auth-methods): Expand the secret password.
Diffstat (limited to 'lisp/mail/smtpmail.el')
-rw-r--r--lisp/mail/smtpmail.el2
1 files changed, 2 insertions, 0 deletions
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.")
(save-function (and ask-for-password
(plist-get auth-info :save-function)))
ret)
+ (when (functionp password)
+ (setq password (funcall password)))
(when (and user
(not password))
;; The user has stored the user name, but not the password, so