From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/57100 Path: main.gmane.org!not-for-mail From: Dan Christensen Newsgroups: gmane.emacs.gnus.general Subject: Re: sorting summary on spamassassin score Date: Wed, 21 Apr 2004 15:22:59 -0400 Sender: ding-owner@lists.math.uh.edu Message-ID: <87n055nnjg.fsf@uwo.ca> References: <8765cbboma.fsf@uwo.ca> <87k70rgy7x.fsf@virgil.koldfront.dk> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1082575469 3370 80.91.224.253 (21 Apr 2004 19:24:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Apr 2004 19:24:29 +0000 (UTC) Original-X-From: ding-owner+M5640@lists.math.uh.edu Wed Apr 21 21:24:04 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 1BGNKF-0003oU-00 for ; Wed, 21 Apr 2004 21:24:03 +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 1BGNJm-00067B-00; Wed, 21 Apr 2004 14:23:34 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BGNJf-000675-00 for ding@lists.math.uh.edu; Wed, 21 Apr 2004 14:23:27 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BGNJb-00028K-TY for ding@lists.math.uh.edu; Wed, 21 Apr 2004 14:23:23 -0500 Original-Received: from pony.its.uwo.ca (pony.its.uwo.ca [129.100.2.63]) by justine.libertine.org (Postfix) with ESMTP id D15BD3A0044 for ; Wed, 21 Apr 2004 14:23:22 -0500 (CDT) Original-Received: from spork.its.uwo.ca (ride.its.uwo.ca [10.10.10.10]) by pony.its.uwo.ca (8.12.10/8.12.10) with ESMTP id i3LJNFLF020316 for ; Wed, 21 Apr 2004 15:23:15 -0400 (EDT) Original-Received: from localhost (jdc.math.uwo.ca [129.100.75.77]) by spork.its.uwo.ca (8.12.10/8.12.10) with ESMTP id i3LJN0fc032595 for ; Wed, 21 Apr 2004 15:23:00 -0400 Original-Received: from jdc by localhost with local (Exim 3.36 #1 (Debian)) id 1BGNJD-0004dB-00; Wed, 21 Apr 2004 15:22:59 -0400 Original-To: ding@gnus.org In-Reply-To: <87k70rgy7x.fsf@virgil.koldfront.dk> (Adam =?iso-8859-1?q?Sj=F8gren's?= message of "Thu, 08 Apr 2004 01:33:22 +0200") Mail-Copies-To: nobody User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux) X-Scanned-By: MIMEDefang 2.39 Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:57100 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:57100 Wes and Adam, thanks for the suggestions. Here's what I now use: In the group parameters for my spam group: ((gnus-show-threads nil) (gnus-article-sort-functions '(jdc-gnus-article-sort-by-spam-status))) In my .gnus.el: (add-to-list 'nnmail-extra-headers 'X-Spam-Status) (add-to-list 'gnus-extra-headers 'X-Spam-Status) (defun jdc-spam-status (h) "The spam rating from the X-Spam-Status header." (string-to-number (gnus-replace-in-string (gnus-extra-header 'X-Spam-Status h) ".*hits=" ""))) (defun gnus-user-format-function-s (h) (jdc-spam-status h)) (defun jdc-gnus-article-sort-by-spam-status (h1 h2) "Sort articles by score from the X-Spam-Status: header." (< (jdc-spam-status h1) (jdc-spam-status h2))) And I added "%us" to my gnus-summary-line-format. Dan