From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/49667 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: `S t' always returns nil Date: Mon, 27 Jan 2003 12:50:52 -0500 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Sender: owner-ding@hpc.uh.edu Message-ID: <4nd6micwhv.fsf@lockgroove.bwh.harvard.edu> References: <87d6mjsz41.fsf@splinter.inka.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043689849 13761 80.91.224.249 (27 Jan 2003 17:50:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 27 Jan 2003 17:50:49 +0000 (UTC) Cc: ding@gnus.org 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 18dDOn-0003YB-00 for ; Mon, 27 Jan 2003 18:50:22 +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 18dDPz-0004i8-00; Mon, 27 Jan 2003 11:51:35 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 27 Jan 2003 11:52:33 -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 LAA13419 for ; Mon, 27 Jan 2003 11:52:21 -0600 (CST) Original-Received: (qmail 2337 invoked by alias); 27 Jan 2003 17:51:19 -0000 Original-Received: (qmail 2332 invoked from network); 27 Jan 2003 17:51:19 -0000 Original-Received: from clifford.bwh.harvard.edu (134.174.9.41) by 66.230.238.6 with SMTP; 27 Jan 2003 17:51:19 -0000 Original-Received: from lockgroove.bwh.harvard.edu (lockgroove [134.174.9.133]) by clifford.bwh.harvard.edu (8.10.2+Sun/8.11.0) with ESMTP id h0RHotW13310; Mon, 27 Jan 2003 12:50:55 -0500 (EST) Original-Received: (from tzz@localhost) by lockgroove.bwh.harvard.edu (8.11.6+Sun/8.11.0) id h0RHoq626347; Mon, 27 Jan 2003 12:50:52 -0500 (EST) Original-To: Christopher Splinter X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Followup-To: Christopher Splinter , ding@gnus.org In-Reply-To: <87d6mjsz41.fsf@splinter.inka.de> (Christopher Splinter's message of "Sun, 26 Jan 2003 16:35:26 +0100") User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 (sparc-sun-solaris2.8) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:49667 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:49667 On Sun, 26 Jan 2003, chris@splinter.inka.de wrote: > Hi, > > 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. > > I use the most recent version of bogofilter from CVS, which > returns lines like this: > >| 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 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)) (if score (when (string-match "spamicity=\\([0-9.]+\\)" header) (match-string 1 header)) spam-split-group)))) 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? Thanks Ted