Gnus development mailing list
 help / color / mirror / Atom feed
From: Christopher Splinter <chris@splinter.inka.de>
Subject: Re: `S t' always returns nil
Date: Mon, 27 Jan 2003 20:01:51 +0100	[thread overview]
Message-ID: <87bs224dsw.fsf@splinter.inka.de> (raw)
In-Reply-To: <4nd6micwhv.fsf@lockgroove.bwh.harvard.edu> (Ted Zlatanov's message of "Mon, 27 Jan 2003 12:50:52 -0500")

Ted Zlatanov <tzz@lifelogs.com> writes:

> On Sun, 26 Jan 2003, chris@splinter.inka.de wrote:
>> I think there is something wrong with `S t' as it always
>> returns a spamicity of 0, even if the concerned mail is clearly
>> spam and is recognized as such by bogofilter, too. 
>> 
>> | X-Bogosity: Spam, tests=bogofilter, spamicity=0.9056373309,
>> | version=0.10.1.1.cvs.20030125
>> 
>> The variables which are related to bogofilter are set properly.
>
> Hmm, the version I used for testing had lines like this:
>
> X-Bogosity: Yes, tests=bogofilter, spamicity=0.567040, version=0.9.1.2

You still get this output (at least by default) using the
Robinson or the Graham algorithm. The newer Robinson-Fisher
though, which has three possible return values, can return
'Spam', 'Ham' or 'Unsure'.

Currently Robinson is the default algorithm, but AFAIK it is
considered to change it to Robinson-Fisher.

> so I wrote spam-check-bogofilter-headers to look for "X-Bogosity: Yes"
> headers, see below.
>
> (defun spam-check-bogofilter-headers (&optional score)
>   (let ((header (message-fetch-field spam-bogofilter-header)))
>       (when (and header
> 	       (string-match "^Yes" header))

Gna. Should've seen this.

> Fixing this is trivial, but should I match on something else, or
> should I allow both ^Yes and ^Spam as valid spam indicators in the
> header?

Since the indicators are configurable, it might be advisable to
allow the user to tell Gnus what to match on.

There's one thing to be decided if Robinson-Fisher is integrated into
spam.el, though: What should be done with the 'unsure' messages?
Should they be moved to a separate group?



  reply	other threads:[~2003-01-27 19:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-26 15:35 Christopher Splinter
2003-01-27 17:50 ` Ted Zlatanov
2003-01-27 19:01   ` Christopher Splinter [this message]
2003-01-27 20:17     ` Ted Zlatanov
2003-01-28 15:13       ` Christopher Splinter
2003-01-28 16:46         ` Ted Zlatanov

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=87bs224dsw.fsf@splinter.inka.de \
    --to=chris@splinter.inka.de \
    /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).