From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/2581 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.user Subject: Re: Bogofilter spamicity score Date: Thu, 05 Jun 2003 10:49:22 -0400 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Message-ID: <4nptlsr34d.fsf@holmes.bwh.harvard.edu> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138668962 15667 80.91.229.2 (31 Jan 2006 00:56:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:56:02 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:30:55 2006 Original-Path: quimby.gnus.org!news.ccs.neu.edu!news.dfci.harvard.edu!news.harvard.edu!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: holmes.bwh.harvard.edu Original-X-Trace: plato.harvard.edu 1054824563 17413 134.174.9.102 (5 Jun 2003 14:49:23 GMT) Original-X-Complaints-To: news@plato.harvard.edu Original-NNTP-Posting-Date: Thu, 5 Jun 2003 14:49:23 +0000 (UTC) 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" User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (usg-unix-v) Cancel-Lock: sha1:NRR0X4Yo/BAgEKH7nh6H8TSXdSw= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:2721 Original-Lines: 41 X-Gnus-Article-Number: 2721 Tue Jan 17 17:30:55 2006 Xref: news.gmane.org gmane.emacs.gnus.user:2581 Archived-At: 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