From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/56932 Path: main.gmane.org!not-for-mail From: Wes Hardaker Newsgroups: gmane.emacs.gnus.general Subject: Re: sorting summary on spamassassin score Date: Wed, 07 Apr 2004 12:05:37 -0700 Organization: Sparta Sender: ding-owner@lists.math.uh.edu Message-ID: References: <8765cbboma.fsf@uwo.ca> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1081364786 7346 80.91.224.253 (7 Apr 2004 19:06:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Apr 2004 19:06:26 +0000 (UTC) Original-X-From: ding-owner+M5471@lists.math.uh.edu Wed Apr 07 21:06:16 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BBINM-0003nL-00 for ; Wed, 07 Apr 2004 21:06:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1BBIND-0005Q3-00; Wed, 07 Apr 2004 14:06:07 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BBIMq-0005LY-00 for ding@lists.math.uh.edu; Wed, 07 Apr 2004 14:05:44 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BBIMo-0001Hd-5U for ding@lists.math.uh.edu; Wed, 07 Apr 2004 14:05:42 -0500 Original-Received: from wes.hardakers.net (adsl-66-127-127-227.dsl.scrm01.pacbell.net [66.127.127.227]) by justine.libertine.org (Postfix) with ESMTP id 1BAD93A01F4 for ; Wed, 7 Apr 2004 14:05:41 -0500 (CDT) Original-Received: by wes.hardakers.net (Postfix, from userid 274) id 4675E11D811; Wed, 7 Apr 2004 12:05:37 -0700 (PDT) Original-To: ding@gnus.org Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXotKX87e8eDA4GAQbQgmlzNycHAwizYkruzul2AAACaUlEQVR4nFXUTW/jIBAGYFI56jWutuq1S9b2dddW6dWtQFxbq4jzwq73Glmg+fv7DiT9QJGS+GEGhiER67TWEQ5CtOeh21ZcIIbmOPq5QvMZYlyV6u+/gsJLTSrGIL/CxEPxQuPAcP0JYlQsq3x5B3UJmUaEyB6yZ+CQ+pwXCzKsbXtbIhg4KtZypPz+AVGtlxH69c87qAqRY6Rc5QUmZMGeAj+TfVjjUwE1lflKys5JGXpM+V0hltqCJ0qL7Plkft4wRM6lxi5p3Wyy7O7fB8TgtdZivxy5rvAB6wSYhbA9vn+GOCaOEGJRPO2mHgk+q1Chyf0Up3AG0NjhOXI19ogEFziq6M+ZtN3kUZ13NW4qUCprC3CW668C06M5jihON1Vsjq8F1CPJB8LINNeQfscwxUEvAwM5Xghvsq2pBr3hnKhbDIrMS3cBRDx70uS9JW2dy667gM0AbZFFmyvn3GOBGB8wG9kppaSNz357LaCmUdtSny5LU9qeCrglvJmyH20TwkjnXQE0usscIWayCWZJ7OpZ4QbUVGRnhuTub3cMYRk99oSplDIfibzfn0FyXyk7z8XThuvC0P/dGCwee7O8aZJBmh0vPixy0NrYhDaR02aR3W0BbyT6h23OB5Hzybj+DOm5w6XCOZG13p5Oh/bursJVh9S+bBiFnPCDuntpcTH080AO+7GlW1i3bRphBM04dZ2dI6yMLjmGFqnIok/cB1YU8sJAACTeuHOd5+lumQHfDM6KyLqEm4aWkkcc1m4PqBewZxBZOg44lT+aJiexDteewb oiVhxAjSHxQwhiYJEdCR6tMN1/uckirDRNbsgAAAAASUVORK5CYII= In-Reply-To: <8765cbboma.fsf@uwo.ca> (Dan Christensen's message of "Wed, 07 Apr 2004 14:59:41 -0400") User-Agent: Gnus/5.110002 (No Gnus v0.2) XEmacs/21.5 (celeriac, linux) X-Spam-Score: -4.9 (----) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:56932 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:56932 >>>>> On Wed, 07 Apr 2004 14:59:41 -0400, Dan Christensen said: Dan> Does anyone have code for sorting the summary buffer based on the Dan> score given by spamassassin? This score appears in a header, Dan> which I guess I would add to gnus-extra-headers. If someone has Dan> ready made code, that'd be great. Should be doable, but it'd probably be processor intensive. I thought about doing something like that but haven't. Dan> While I'm asking, does anyone have code for extracting the Dan> spamassassin score and putting it in the summary line? No, but I've thought about that too. I do something similar with the X-Spam-Status line, though, that you should be able to adapt: ;; mark messages with X-ping in them (setq gnus-extra-headers '(To X-Spam-Status) (defun gnus-user-format-function-S (header) (let ((head (gnus-extra-header 'X-Spam-Status header))) (if (string-match "autolearn=\\(ham\\|spam\\|no\\)" head) (substring head (match-beginning 1) (match-end 1)) "") )) I put the spam/ham/unknown markings at the end to trigger my summary highlight expressions so that the first 6 characters (the date for me) of the line are highlighted with a particular color if I need to train spamassain on the message. Gives a nice visual queue. You could do something similar with scoring I'm sure. (I also highlight the baysean score in the article buffer with green, but I've wanted to move it to the summary buffer as well but haven't yet). -- "In the bathtub of history the truth is harder to hold than the soap, and much more difficult to find." -- Terry Pratchett