Gnus development mailing list
 help / color / mirror / Atom feed
From: IRIE Tetsuya <irie@t.email.ne.jp>
Subject: Re: spam-check-spamassassin-headers with spamassasin 3.0/3.1
Date: Sat, 25 Feb 2006 09:47:09 +0900	[thread overview]
Message-ID: <874q2owb1f.fsf%irie@t.email.ne.jp> (raw)
In-Reply-To: <v9r7666l2y.fsf@marauder.physik.uni-ulm.de>

[-- Attachment #1: Type: text/plain, Size: 283 bytes --]

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: spam.el.patch --]
[-- Type: text/x-patch, Size: 624 bytes --]

2006-02-25  IRIE Tetsuya  <irie@t.email.ne.jp>

	* 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))

  reply	other threads:[~2006-02-25  0:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <873biqwtf5.fsf@puyo.nijino.com>
2006-02-13 16:42 ` Ted Zlatanov
2006-02-14 15:01 ` Reiner Steib
2006-02-25  0:47   ` IRIE Tetsuya [this message]
2006-02-25 21:33     ` Reiner Steib
2006-02-26  2:45       ` IRIE Tetsuya
2006-02-28 13:44         ` Reiner Steib
2006-03-01 13:57           ` IRIE Tetsuya

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874q2owb1f.fsf%irie@t.email.ne.jp \
    --to=irie@t.email.ne.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).