]> git.eshelyaron.com Git - emacs.git/commitdiff
(smtpmail-try-auth-methods): Expand the secret password.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 21 Aug 2011 20:10:29 +0000 (22:10 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 21 Aug 2011 20:10:29 +0000 (22:10 +0200)
lisp/ChangeLog
lisp/mail/smtpmail.el

index 7fb9f323950ff2db93f33ae288d704a9a682554f..f247abdd468fe3ec3473d42cda8ed0993fc10792 100644 (file)
@@ -3,6 +3,7 @@
        * mail/smtpmail.el (smtpmail-via-smtp): Only bind
        `coding-system-for-*' around the process open call to avoid
        auth-source side effects.
+       (smtpmail-try-auth-methods): Expand the secret password.
 
 2011-08-21  Chong Yidong  <cyd@stupidchicken.com>
 
index 381af3b963a69c5a3dd9a4c899aafe03ad5076b1..f905eea8405d26a9d3812a7158f00cc5719b236b 100644 (file)
@@ -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