From 5707c9233e2003e5648797968105afe2b9329c8d Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Fri, 31 Jul 2020 18:09:21 +0200 Subject: [PATCH] Remember to fix setting `gnus-secondary-select-methods' If `db/mail-accounts' specifies accounts multiple times, or a definition for some of these accounts is already present in `db/other-gnus-accounts', accounts will be added multiple times with the current implementation. Apparently, Gnus does not seem to care, but it would be better to have this fixed properly. --- site-lisp/db-mail.el | 1 + 1 file changed, 1 insertion(+) diff --git a/site-lisp/db-mail.el b/site-lisp/db-mail.el index 1ab51d1..7a24e28 100644 --- a/site-lisp/db-mail.el +++ b/site-lisp/db-mail.el @@ -92,6 +92,7 @@ ACCOUNT must be a valid element of `db/mail-accounts’." "Set `gnus-secondary-select-methods’ from OTHER-GNUS-ACCOUNTS and REMOTE-MAIL-ACCOUNTS. The values of the latter two variables are usually those of `db/other-gnus-accounts’ and `db/mail-accounts’." + ;; XXX: this does not check whether accounts are added multiple times (setq gnus-secondary-select-methods (append other-gnus-accounts ;; Only add those remote accounts whose IMAP address is neither