From: physiculus <physiculus@gmail.com>
To: info-gnus-english@gnu.org
Subject: gnus and spam filtering; it is not working well
Date: Thu, 13 Jan 2022 19:45:57 +0100 [thread overview]
Message-ID: <87a6fzxymy.fsf@googlemail.com> (raw)
hello,
i try to make gnus a bit more useful for spam detection, but it does
only work partially.
if header is flagged as spam, gnus put the message into the spam folder.
but checking with bogofilter is not working.
does anybody know what is wrong with my config?
any help?
Regards,
Jens
;; spam
(require 'spam)
(spam-initialize)
;;(setq spam-log-to-registry t) ; for spam autodetection
(setq spam-use-regex-headers t) ; catch X-Spam-Flag (SpamAssassin)
(setq spam-use-bogofilter t)
(setq spam-bogofilter-database-directory "~/.bogofilter/")
(setq spam-autodetect-recheck-messages nil)
(setq nnmail-split-methods 'nnmail-split-fancy)
(nnimap "GMail"
(nnimap-address "imap.gmail.com")
(nnimap-serer-port "imaps")
(nnimap-user "xxx@yyy.com")
(nnimap-stream ssl)
(nnimap-inbox "[Gmail]/Alle Nachrichten")
(nnimap-expunge 'immediately)
;;(nnimap-record-commands t)
(nnimap-split-methods 'nnmail-split-fancy)
(spam-autodetect-recheck-messages nil)
(nnimap-split-download-body t)
(spam-process ((spam spam-use-bogofilter)
(ham spam-use-bogofilter)))
(nnmail-split-fancy
(&
(&
(: spam-split "regex-spam" 'spam-use-regex-headers)
;;(: spam-split)
(: nnmail-split-fancy-with-parent)
;;(: spam-split)
)
(|
(any ".*xxx@yyyhaus\\.de" "Linz")
(any ".*yyy@yyyhaus\\.de" "Linz")
(any ".*nnn@yyyhaus\\.de" "Linz")
(any ".*sss@gmail\\.com" "Linz")
(any ".*ggg@holnishaus\\.de" "Linz")
)
(&
(any ".*emacs-orgmode@gnu\\.org" "OrgDigest")
(any ".*info-gnus-english@gnu\\.org" "gnus")
(any ".*n3\\.nabble\\.com" "notmuch")
(any ".*mu-discuss@googlegroups\\.com" "mu")
(any ".*pinterest\\.com" "Pinterest")
(any ".*bbdb-user-request@nongnu\\.org" "bbdb")
(any ".*emms-help-request@gnu\\.org" "emms")
(any ".*ebay\\.com" "EBay")
(any ".*ebay\\.de" "EBay")
(any ".*ebay-kleinanzeigen\\.de" "EBay")
(any ".*list@moertelshop\\.com" "Moertelshop")
(any ".*gartenkalender@garten-schlueter\\.de" "Garten")
(any ".*info@bohlken-baumschulen\\.de" "Garten")
(any ".*newsletter@gaissmayer\\.de" "Garten")
(any ".*@correcti\\.org" "Correcti")
))
"INBOX")
;;(nnimap-split-methods default)
(get-new-mail t)
(gnus-search-engine gnus-search-imap)
)
next reply other threads:[~2022-01-13 18:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-13 18:45 physiculus [this message]
2022-01-15 17:18 ` Eric Abrahamsen
2022-01-16 14:05 ` physiculus
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=87a6fzxymy.fsf@googlemail.com \
--to=physiculus@gmail.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).