Gnus development mailing list
 help / color / mirror / Atom feed
From: "Ted Zlatanov" <tzz@lifelogs.com>
Cc: ding@gnus.org
Subject: Re: bogofilter setup examples
Date: 22 Apr 2005 13:49:52 -0400	[thread overview]
Message-ID: <4nwtqubt1b.fsf@lifelogs.com> (raw)
In-Reply-To: <873btmif91.fsf@mun.ca> (Sebastian Luque's message of "Tue, 19 Apr 2005 17:16:42 -0500")

On Tue, 19 Apr 2005, sluque@mun.ca wrote:

> Hello, I'm trying to set bogofilter (0.94.4) up with gnus 5.10.7 (Debian
> package) in GNU Emacs 21.4.1 (i386-pc-linux-gnu, X toolkit, Xaw3d scroll
> bars) of 2005-03-17 on trouble, modified by Debian. I've read the relevant
> sections of the manual, but I'm having trouble understanding how I should
> proceed. Can somebody please point to some source where I can find
> examples?

Besides Jonas' setup, you can look at the other spam.el-related posts,
quite a few have complete configurations.

You have to start with

(require 'spam)
(spam-initialize 'spam-use-bogofilter) ; plus whatever other backends
                                       ; you want to use, look in the manual

(setq spam-split-group "spam")         ; this is the default anyhow

> I have all my incoming mail in different nnmaildir groups, and would like
> to have bogofilter tag all the incoming mail and put it in a
> nnmaildir:Spam group.

You have to put (: spam-split) in your nnmail-split-fancy list.  It
will use whatever backends you provided to spam-initialize above.  You
can also specify a backend here, e.g.

(: spam-split 'spam-use-BBDB)

and even a spam group to override the default spam-split-group:

(: spam-split 'spam-use-bogofilter "SPAM")

so you can have different backends send spam to different places.

> It also seems possible to manually mark messages as spam or ham from
> within any group, and have gnus move the spam marked messages to the
> spam group upon exit, or just leave it there if it's ham.

Yes, the logic depends on whether the group is classified as a ham
group, spam group, or neither (but basically, spam is always
processed).  You can change the classification of a group with `G c'
as usual.  There, you can also set the spam/ham exit processors and
process destinations.  Spam groups have the added distinction that all
unseen articles are marked as spam when you enter the group.

The spam/ham processor processes spam or ham when you exit the group.

The process destination says what will happen to the spam or ham: it
will be moved to a group or groups; it will stay and (if spam) be
expired; or it will be respooled.  All this is visible under `G c' as
spam/ham process destination choices.

> I understand it's also possible to use both actions to train
> bogofilter and update its word database. Hopefully I can learn how
> to do these things from an examples web page.

Basically, when you quit a summary buffer, some spam.el-related hooks
will be run to do what I describe above.  So use `G c' to add
spam-use-bogofilter to your spam/ham processors, and the exit hooks
will do the right thing.

If you need to use `G c' on many groups, consider using topics or the
gnus-parameters variable, that will let you group settings together.

By the way, I found bogofilter slow and its database got corrupted a
lot when I tried it.  Maybe it was just me, but I like the
SpamAssassin database and speed much better for local spam
processing.  Plus, SA lets you talk to a remote server if needed.

Ted



  parent reply	other threads:[~2005-04-22 17:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-19 22:16 Sebastian Luque
2005-04-20  7:54 ` Jonas Steverud
2005-04-22 17:49 ` Ted Zlatanov [this message]
2005-04-27 19:24   ` Sebastian Luque
2005-04-29 15:26     ` Ted Zlatanov
2005-04-29 16:17       ` Reiner Steib
2005-04-29 16:48         ` Ted Zlatanov
2005-04-29 18:09         ` Sebastian Luque
2005-04-29 18:20           ` Arne Jørgensen

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=4nwtqubt1b.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=ding@gnus.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).