From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/49676 Path: main.gmane.org!not-for-mail From: Christopher Splinter Newsgroups: gmane.emacs.gnus.general Subject: Re: `S t' always returns nil Date: Mon, 27 Jan 2003 20:01:51 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: <87bs224dsw.fsf@splinter.inka.de> References: <87d6mjsz41.fsf@splinter.inka.de> <4nd6micwhv.fsf@lockgroove.bwh.harvard.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043695199 7790 80.91.224.249 (27 Jan 2003 19:19:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 27 Jan 2003 19:19:59 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18dEnV-00021Q-00 for ; Mon, 27 Jan 2003 20:19:57 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18dEoh-0005so-00; Mon, 27 Jan 2003 13:21:11 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 27 Jan 2003 13:22:08 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id NAA13719 for ; Mon, 27 Jan 2003 13:21:56 -0600 (CST) Original-Received: (qmail 5205 invoked by alias); 27 Jan 2003 19:20:54 -0000 Original-Received: (qmail 5200 invoked from network); 27 Jan 2003 19:20:54 -0000 Original-Received: from quechua.inka.de (HELO mail.inka.de) (mail@193.197.184.2) by 66.230.238.6 with SMTP; 27 Jan 2003 19:20:54 -0000 Original-Received: from splinter.inka.de (uucp@) by mail.inka.de with gbsmtp id 18dEoM-00032B-00; Mon, 27 Jan 2003 20:20:50 +0100 Original-Received: (qmail 11529 invoked by uid 1000); 27 Jan 2003 19:07:03 -0000 Original-To: ding@gnus.org In-Reply-To: <4nd6micwhv.fsf@lockgroove.bwh.harvard.edu> (Ted Zlatanov's message of "Mon, 27 Jan 2003 12:50:52 -0500") User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.3.50 (i686-pc-linux-gnu) Original-Lines: 44 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:49676 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:49676 Ted Zlatanov 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?