* refactoring gnus’ spam setup
@ 2016-10-05 10:46 Saša Janiška
0 siblings, 0 replies; only message in thread
From: Saša Janiška @ 2016-10-05 10:46 UTC (permalink / raw)
To: info-gnus-english
Hello,
after some fiddling I’ve managed to complete my Spam setup for Gnus
using bogofilter and regex.
Here is part of my setup:
(setq
nnimap-split-download-body-default t
spam-use-bogofilter t
spam-use-regex-headers t
spam-log-to-registry t
gnus-spam-newsgroup-contents
'(("spam" gnus-group-spam-classification-spam) ;; ‘spam’ groups contain spam
(".*" gnus-group-spam-classification-ham))) ;; all others are ham
I’ve multi-account IMAP setup and each account has ’spam’ group.
Now, each of my nnimp+account has the following in the gnus-parameters:
;; Spam setup
;;(spam-contents gnus-group-spam-classification-ham)
(spam-process ((spam spam-use-bogofilter)
(ham spam-use-bogofilter)))
(spam-process-destination . "nnimap+account:spam")
Lastly, I have:
(nnimap "jagoda"
(nnimap-address "mail.webfaction.com")
(nnimap-server-port 993)
(nnimap-stream ssl)
(nnimap-authinfo-file "~/.authinfo.gpg")
(nnimap-inbox "INBOX")
(nnimap-split-methods 'nnimap-split-fancy)
(nnimap-split-fancy
(|
(: gnus-registry-split-fancy-with-parent)
(: spam-split 'spam-use-regex-headers)
(: spam-split)
"INBOX") ;; default mailbox
))
in each account’s gnus-secondary-select-methods:
(nnimap "account"
(nnimap-address "mail.server.com")
(nnimap-server-port 993)
(nnimap-stream ssl)
(nnimap-authinfo-file "~/.authinfo.gpg")
(nnimap-inbox "INBOX")
(nnimap-split-methods 'nnimap-split-fancy)
(nnimap-split-fancy
(|
(: gnus-registry-split-fancy-with-parent)
(: spam-split 'spam-use-regex-headers)
(: spam-split)
"INBOX") ;; default mailbox
))
Now I wonder if, considering that I have ’globally’ enabled
spam-use-bogofilter & spam-use-regex-header and due to defined
gnus-spam-newsgroup-contents
do I still need:
(spam-process ((spam spam-use-bogofilter)
(ham spam-use-bogofilter)))
(spam-process-destination . "nnimap+account:spam")
in each account’s group parameters?
Sincerely,
Gour
--
The intricacies of action are very hard to understand.
Therefore one should know properly what action is,
what forbidden action is, and what inaction is.
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-10-05 10:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-05 10:46 refactoring gnus’ spam setup Saša Janiška
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).