[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#29692: 24.5; gnus does not remember password change for imap
From: |
Ted Zlatanov |
Subject: |
bug#29692: 24.5; gnus does not remember password change for imap |
Date: |
Fri, 15 Dec 2017 00:19:10 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
On Wed, 13 Dec 2017 08:52:27 -0800 Trey Jackson <trey_jackson@mentor.com>
wrote:
TJ> this patch changes the code to check the password as well.
TJ> the cache ends up storing two passwords (in this case), but it works b/c
TJ> when reading the cache the newest password is used:
TJ> /usr/local/share/emacs/24.5/lisp/gnus/mail-source.el.gz
~/scratch/mail-source.el
TJ> --- - 2017-12-13 08:47:13.425421767 -0800
TJ> +++ /home/tjackson/scratch/mail-source.el 2017-12-13 08:44:51.098076000
-0800
TJ> @@ -1102,7 +1102,7 @@
TJ> ;; remember password
TJ> (with-current-buffer buf
TJ> (when (and imap-password
TJ> - (not (assoc from mail-source-password-cache)))
TJ> + (not (member (cons from imap-password)
mail-source-password-cache)))
TJ> (push (cons from imap-password) mail-source-password-cache)))
TJ> ;; if predicate is nil, use all uids
TJ> (dolist (uid (imap-search (or predicate "1:*") buf))
Thank you, applied in the emacs-26 branch.
Ted