Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
Subject: Re: using spam.el
Date: Tue, 08 Feb 2005 14:11:53 -0500	[thread overview]
Message-ID: <4nu0omvpc6.fsf@lifelogs.com> (raw)
In-Reply-To: <87wttuy8ss.fsf@house.net>

On Sun, 30 Jan 2005, exaltiNOSPAM@yahoo.com wrote:

> I am having the dickens of a time understanding how to use spam.el with
> bogofilter.  So far I have the following in my custom.el and .gnus:
> 
> (setq nnmail-split-methods 'nnmail-split-fancy
>       nnmail-split-fancy 
>       '(|
> 	(: spam-split)
>         ....))
> 
> in my .gnus and:
> 
> (require 'spam)
> (spam-initialize)
> (require 'gnus-registry)
> (gnus-registry-initialize)
> (setq spam-log-to-registry t)
> (setq spam-use-bogofilter t)
> 
> in my ~/.xemacs/custom.el.
> 
> When fetching mail this setup does seem to be filtering messages.  My
> issue right now is that when I get a false positive and the message is
> thrown into the spam folder, is there some straight forward way to
> classify it as ham?  I read that when spam is initialized I get one
> command which classifies as spam and one which shows the score.  Is
> there one that classifies a message as ham?

You access group parameters with `G c' - the following instructions
will use that customization screen.  You can also use a global Gnus
parameter if you prefer doing it through Lisp.

Make sure the spam group is known as such to the spam.el package (the
spam-newsgroup-contents group parameter should be set correctly).

Set the exit spam and ham processors for the group to bogofilter.

Set an spam/ham exit processing destination if you want to save the
ham/spam processed articles.

When you enter the group, all unseen messages will be marked as spam.
Mark the ones you want as ham (ham is marked with the ham-mark, which
is a list of possible marks and also customizable; by default they are
gnus-del-mark gnus-read-mark gnus-killed-mark gnus-kill-file-mark
gnus-low-score-mark).  To apply the gnus-del-mark just hit `d' on a
message.

Now, when you exit the group, the articles will be processed by the
spam or ham processor (both bogofilter in this case) and go to the
ham/spam process destination if you set it.

Ted


      reply	other threads:[~2005-02-08 19:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-30 20:13 Al Arduengo
2005-02-08 19:11 ` Ted Zlatanov [this message]

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=4nu0omvpc6.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    /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).