From: Ted Zlatanov <tzz@lifelogs.com>
Subject: Re: Bogofilter spamicity score
Date: Thu, 05 Jun 2003 10:49:22 -0400 [thread overview]
Message-ID: <4nptlsr34d.fsf@holmes.bwh.harvard.edu> (raw)
In-Reply-To: <yovay90gj2h4.fsf@wsl.ch>
On Thu, 05 Jun 2003, lanz@fowi.ethz.ch wrote:
> On 5 Jun 2003, lanz@fowi.ethz.ch wrote:
>
>> Checking the Bogofilter backend with S t for the spamicity of a
>> message results in Spamicity score nil for ham mail messages. S t
>> should always (for ham and spam) return the score. This is for CVS
>> Gnus v5.10.3 (2003-06-04).
>
> This is the symptom, yes.
>
>> >
>> The reasons is that spam-check-bogofilter-headers returns nil for
>> ham messages, i.e. a bogofilter "X-Bogosity: No ..." result.
>>
>
> The following is a VERY BAD SOLUTION. DON'T USE IT!
>
>>
>> I changed spam-check-bogofilter-headers to:
>>
>> (defun spam-check-bogofilter-headers (&optional score)
>> (let ((header (message-fetch-field spam-bogofilter-header)))
>> ;; (when (and header
>> ;; (string-match
>> ;; spam-bogofilter-bogosity-positive-spam-header
>> ;; header))
>> (when header
>> (if score
>> (when (string-match "spamicity=\\([0-9.]+\\)" header)
>> (match-string 1 header))
>> spam-split-group))))
>>
>> which works for me (I use spam-use-bogofilter for mail splitting).
You followed up to your own message with a rather unhelpful warning.
Can you explain what you really want `S t' to do? I'll try to
accomodate you in spam.el.
Thanks
Ted
parent reply other threads:[~2003-06-05 14:49 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <yovay90gj2h4.fsf@wsl.ch>]
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=4nptlsr34d.fsf@holmes.bwh.harvard.edu \
--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).