info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

refactoring gnus’ spam setup


From: Saša Janiška
Subject: refactoring gnus’ spam setup
Date: Wed, 05 Oct 2016 12:46:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]