From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61990 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: spam-check-spamassassin-headers with spamassasin 3.0/3.1 Date: Tue, 14 Feb 2006 16:01:25 +0100 Message-ID: References: <873biqwtf5.fsf@puyo.nijino.com> Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1139929352 21974 80.91.229.2 (14 Feb 2006 15:02:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Feb 2006 15:02:32 +0000 (UTC) Cc: ding@gnus.org, bugs@gnus.org Original-X-From: ding-owner+m10518@lists.math.uh.edu Tue Feb 14 16:02:26 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F91gm-00045m-Qy for ding-account@gmane.org; Tue, 14 Feb 2006 16:02:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1F91gj-0002on-00; Tue, 14 Feb 2006 09:01:57 -0600 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1F91gO-0002oi-00 for ding@lists.math.uh.edu; Tue, 14 Feb 2006 09:01:36 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1F91gK-0007ie-J5 for ding@lists.math.uh.edu; Tue, 14 Feb 2006 09:01:36 -0600 Original-Received: from mail.uni-ulm.de ([134.60.1.1]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1F91gI-0006Fc-00; Tue, 14 Feb 2006 16:01:30 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by mail.uni-ulm.de (8.13.4/8.13.4) with ESMTP id k1EF1PEn023784; Tue, 14 Feb 2006 16:01:28 +0100 (MET) Original-Received: by bridgekeeper.physik.uni-ulm.de (Postfix, from userid 170) id A8785111CF; Tue, 14 Feb 2006 16:01:25 +0100 (CET) Original-To: ARISAWA Akihiro Mail-Followup-To: ARISAWA Akihiro , ding@gnus.org X-Face: /U7=m^"/-Dn61mAl{g9e3>\G5Tp,oEX|V)g2I1hBk\ML;)7A?6cmB-y7y?'NA^J<=oz7syB =(McAwIHgLX!.B?R3X}98d@?>CrT094KLWh]WU4gDpnL/")MS(XoQTv`Oq225uL>+;CpPXo$N5e>N> $tPd-gbB^F{gQS#1ase]XO~D4p4M"3+F-7~u]dy3I?Pb8RO*H-EFeWDUf?Rf,d]pv\Jvh2Cht!A=im yKAS2Z%Ao^;}W/qzMvMm In-Reply-To: <873biqwtf5.fsf@puyo.nijino.com> (ARISAWA Akihiro's message of "Sat, 11 Feb 2006 10:55:26 +0900") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-DCC-servers-Metrics: gemini 1049; Body=3 Fuz1=3 Fuz2=3 X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61990 Archived-At: On Sat, Feb 11 2006, ARISAWA Akihiro wrote (on bugs@gnus.org): > I am using spamassassin 3.1, and (setq spam-use-spamassassin-headers t). > When I typed S t in Summary buffer, reported score is always 0. > > Spamassassin 3.0 or later, the default X-Spam-Status field is changed as: > |X-Spam-Status: No, score=0.1 required=8.0 ... > But, `spam-check-spamassassin-headers' checks only "hits=". > cf. http://issues.apache.org/SpamAssassin/show_bug.cgi?id=1332 > > When I changed spam.el as attached, the reported score is corrected. [...] > - (if (string-match "hits=\\(-?[0-9.]+\\)" header) > - (match-string 1 header) > + (if (string-match "\\(hits\\|score\\)=\\(-?[0-9.]+\\)" header) > + (match-string 2 header) > "0"))) Thanks for your report. I've committed a slightly different fix in CVS. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/