Gnus development mailing list
 help / color / mirror / Atom feed
From: Raja R Harinath <harinath@cs.umn.edu>
Cc: ding@gnus.org
Subject: Re: Problems with spam filtering and bogofilter.
Date: Wed, 15 Jan 2003 15:17:19 -0600	[thread overview]
Message-ID: <d9smvucduo.fsf@bose.cs.umn.edu> (raw)
In-Reply-To: <4nptqyb46y.fsf@koz.bwh.harvard.edu> (Ted Zlatanov's message of "Wed, 15 Jan 2003 14:31:17 -0500")

Hi,

Ted Zlatanov <tzz@lifelogs.com> writes:

> On Fri, 10 Jan 2003, harinath@cs.umn.edu wrote:
>>   * ham marked and X-Bogosity: No        => do nothing
>>   * ham marked and X-Bogosity: Yes       => | bogofilter -N
>>   * ham marked and no X-Bogosity header  => | bogofilter -n
>> 
>>   * spam marked and X-Bogosity: No       => | bogofilter -S
>>   * spam marked and X-Bogosity: Yes      => do nothing
>>   * spam marked and no X-Bogosity header => | bogofilter -s
>
> Hmm, I think I like the exit codes of bogofilter (1 for ham, 0 for
> spam).  I'd rather use that than the procmail filtering, since IMAP
> users often don't have procmail available.  

That's fine.  But, it would be nice to integrate with procmail for
people who can and do use procmail.

> We can add a new check (spam-check-bogofilter-headers) if anyone is
> interested in filtering on the Bogofilter X-Bogosity header and it
> gets inserted elsewhere in the mail delivery chain, 

That can be achieved with the regular gnus splitting machinery.  No
need for 'spam.el' to worry in this case, IMHO.

> but spam-check-bogofilter should not rely on that.  So speak up if
> you want spam-check-bogofilter-headers added.
>
> So the invocations will be:
>
> ham-marked: bogofilter -n
> spam-marked: bogofilter -s

This should be automatically covered in the "no X-Bogosity header"
case above.  You really want to check if 'bogofilter' already has
incorporated the counts for this message -- and the X-Bogosity header
is a good indicator.

Also I meant the above rules to be used in the post-processing routine
(spam-bogofilter-register-routine), not in the filtering part.  My
suggestion above will work if the mail was processed by any of:

  * procmail script with 'bogofilter -u -e -p'
  * spam-split with spam-check-bogofilter
  * any other splitting tool which may not even invoke bogofilter

- Hari
-- 
Raja R Harinath ------------------------------ harinath@cs.umn.edu



  reply	other threads:[~2003-01-15 21:17 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-10 12:33 Malcolm Purvis
2003-01-10 12:56 ` Ted Zlatanov
2003-01-10 17:24   ` Raja R Harinath
2003-01-13 19:17     ` Ted Zlatanov
2003-01-15 19:31     ` Ted Zlatanov
2003-01-15 21:17       ` Raja R Harinath [this message]
2003-01-16  0:11         ` new Bogofilter functionality (was: Problems with spam filtering and bogofilter.) Ted Zlatanov
2003-01-16 11:00           ` new Bogofilter functionality Malcolm Purvis
2003-01-16 11:55             ` Ted Zlatanov
2003-01-11 12:17   ` Problems with spam filtering and bogofilter Malcolm Purvis
2003-01-13 19:16     ` Ted Zlatanov
2003-01-13 21:24       ` requesting articles from a nnxyz backend: what's the fastest Ted Zlatanov
2003-01-14  7:22         ` Kai Großjohann
2003-01-14 16:42           ` Ted Zlatanov
2003-01-14 20:39             ` Kai Großjohann
2003-01-15 17:27               ` Ted Zlatanov
2003-01-16 11:56                 ` Kai Großjohann
2003-01-16 12:30                   ` Ted Zlatanov
2003-01-16 12:48                     ` Kai Großjohann
2003-01-16 13:51                       ` Ted Zlatanov
2003-01-14 18:16         ` Lars Magne Ingebrigtsen
2003-01-14 20:42           ` Kai Großjohann
2003-01-15 19:21           ` Ted Zlatanov
2003-01-15 20:10             ` Lars Magne Ingebrigtsen
2003-01-15 22:14               ` Ted Zlatanov
2003-01-17 17:46             ` Paul Jarc

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=d9smvucduo.fsf@bose.cs.umn.edu \
    --to=harinath@cs.umn.edu \
    --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).