From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62091 Path: news.gmane.org!not-for-mail From: IRIE Tetsuya Newsgroups: gmane.emacs.gnus.general Subject: Re: spam-check-spamassassin-headers with spamassasin 3.0/3.1 Date: Sat, 25 Feb 2006 09:47:09 +0900 Message-ID: <874q2owb1f.fsf%irie@t.email.ne.jp> References: <873biqwtf5.fsf@puyo.nijino.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1140883850 16860 80.91.229.2 (25 Feb 2006 16:10:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 25 Feb 2006 16:10:50 +0000 (UTC) Original-X-From: ding-owner+m10619@lists.math.uh.edu Sat Feb 25 17:10:48 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 1FD20J-0006Iv-7O for ding-account@gmane.org; Sat, 25 Feb 2006 17:10:43 +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 1FD20C-00087z-00; Sat, 25 Feb 2006 10:10:36 -0600 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FCncP-0007UB-00 for ding@lists.math.uh.edu; Fri, 24 Feb 2006 18:49:05 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1FCncN-00015G-LV for ding@lists.math.uh.edu; Fri, 24 Feb 2006 18:49:05 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FCncM-0001Gs-00 for ; Sat, 25 Feb 2006 01:49:02 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FCnc7-0003rs-KJ for ding@gnus.org; Sat, 25 Feb 2006 01:48:48 +0100 Original-Received: from softbank218116080040.bbtec.net ([218.116.80.40]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 25 Feb 2006 01:48:47 +0100 Original-Received: from irie by softbank218116080040.bbtec.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 25 Feb 2006 01:48:47 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 38 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: softbank218116080040.bbtec.net User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:7pTjKNBkjq4mHn3SRC0Lp/V7Vxs= X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62091 Archived-At: --=-=-= Hi, Score displayed in summary buffer becomes incorrect if using with spamassassin 3.x. (info "(gnus)Spam ELisp Package Sorting and Score Display in Summary Buffer") I think that a similar change is necessary also for `spam-extra-header-to-number'. Best regards, -- IRIE Tetsuya --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=spam.el.patch 2006-02-25 IRIE Tetsuya * spam.el (spam-extra-header-to-number): Adapt format for spamassassin 3.0 or later. --- spam.el.orig 2006-02-21 08:05:22.000000000 +0900 +++ spam.el 2006-02-25 09:05:31.322535616 +0900 @@ -1181,7 +1181,7 @@ ((eq header 'X-Spam-Status) (string-to-number (gnus-replace-in-string (gnus-extra-header header headers) - ".*hits=" ""))) + ".*\\(?:score\\|hits\\)=" ""))) ;; for CRM checking, it's probably faster to just do the string match ((and spam-use-crm114 (string-match "( pR: \\([0-9.-]+\\)" header)) (match-string 1 header)) --=-=-=--