Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Re: Bogofilter spamicity score
       [not found] ` <yovay90gj2h4.fsf@wsl.ch>
@ 2003-06-05 14:49   ` Ted Zlatanov
  0 siblings, 0 replies; only message in thread
From: Ted Zlatanov @ 2003-06-05 14:49 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-06-05 14:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <yovafzmp3qoz.fsf@wsl.ch>
     [not found] ` <yovay90gj2h4.fsf@wsl.ch>
2003-06-05 14:49   ` Bogofilter spamicity score Ted Zlatanov

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).