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.
This commit is contained in:
Daniel - 2020-07-31 18:09:21 +02:00
parent a69d837171
commit 5707c9233e
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 1 additions and 0 deletions

View File

@ -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