From: "Saša Janiška" <gour@atmarama.com>
To: info-gnus-english@gnu.org
Subject: refactoring gnus’ spam setup
Date: Wed, 05 Oct 2016 12:46:23 +0200 [thread overview]
Message-ID: <87zimjnke8.fsf@atmarama.com> (raw)
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
reply other threads:[~2016-10-05 10:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zimjnke8.fsf@atmarama.com \
--to=gour@atmarama.com \
--cc=info-gnus-english@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).