From b1788705284048382a3ef51783525b37e5443b1f Mon Sep 17 00:00:00 2001 From: Ted Zlatanov Date: Fri, 15 Dec 2017 00:17:30 -0500 Subject: [PATCH] Remember password change for IMAP in Gnus (Bug#29692) Reported by Trey Jackson . * lisp/gnus/mail-source.el (mail-source-fetch-imap): Check `mail-source-password-cache' for password. --- lisp/gnus/mail-source.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/gnus/mail-source.el b/lisp/gnus/mail-source.el index 93f03be72d0..ef34c492545 100644 --- a/lisp/gnus/mail-source.el +++ b/lisp/gnus/mail-source.el @@ -1097,7 +1097,8 @@ This only works when `display-time' is enabled." ;; remember password (with-current-buffer buf (when (and imap-password - (not (assoc from mail-source-password-cache))) + (not (member (cons from imap-password) + mail-source-password-cache))) (push (cons from imap-password) mail-source-password-cache))) ;; if predicate is nil, use all uids (dolist (uid (imap-search (or predicate "1:*") buf)) -- 2.39.2