Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Dmitry Dzhus <mail@sphinx.net.ru>
To: info-gnus-english@gnu.org
Subject: How to set up spam filtering with Bogofilter?
Date: Mon, 01 Oct 2007 20:14:13 +0400	[thread overview]
Message-ID: <87myv2n76y.fsf@sphinx.net.ru> (raw)

Greetings!

What is a way to make Bogofilter installed on my machine help Gnus to
sort out spam mail?

I use a single nnimap mailbox called "INBOX" to read my mail.

I've set `nnimap-split-fancy` according to the docs (parts of code
stripped from customize section of my `.emacs.el`):

    (nnimap-split-rule (quote nnimap-split-fancy))
    (nnimap-split-fancy (quote (| (: spam-split) "INBOX")))

And actually turned on splitting for "INBOX" group:

    (nnimap-split-inbox (quote ("INBOX")))

Group to put posiible spam into:

    (spam-split-group "spam")

And I've pointed to Gnus to download message bodies so filter could
process them:

    (nnimap-split-download-body t)

I've also set `spam.el` to use bogofilter:

    (spam-use-bogofilter t)

Now when I see a spam message in my "INBOX" I press `S x` and see the
message marked as spam. When I quit the group I see Bogofilter
processing marked messages (it really does as I manually checked
bogofilter database file at `~/.bogofilter/wordlist.db`). 

When I make Gnus check for new message in my "INBOX" folder, I also
see Bogofilter processing downloaded message bodies, but still ALL
SPAM gets in my "INBOX" without any splitting at all. And also
checking «spamacity» score with `M x` gives the result of `0.5200000`
regardless of message contents (even if I had marked it as spam some
time before).

Bogofilter's wordlist database is quite big.

Seems that the problem might be connected with the fact that I use
nnimap method to read my inbox.

What could I also try to make Gnus work with Bogofilter properly?

-- 
Happy Hacking.

Dmitry "Sphinx" Dzhus
http://sphinx.net.ru

                 reply	other threads:[~2007-10-01 16:14 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=87myv2n76y.fsf@sphinx.net.ru \
    --to=mail@sphinx.net.ru \
    --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).