From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/57111 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: sorting summary on spamassassin score Date: Thu, 22 Apr 2004 14:30:13 -0400 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Sender: ding-owner@lists.math.uh.edu Message-ID: <4nwu47j26i.fsf@lifelogs.com> References: <8765cbboma.fsf@uwo.ca> <87k70rgy7x.fsf@virgil.koldfront.dk> <87n055nnjg.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 1082659543 30470 80.91.224.253 (22 Apr 2004 18:45:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Apr 2004 18:45:43 +0000 (UTC) Original-X-From: ding-owner+M5651@lists.math.uh.edu Thu Apr 22 20:45:32 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 1BGjCV-0002Bd-00 for ; Thu, 22 Apr 2004 20:45:31 +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 1BGjCC-0001TX-00; Thu, 22 Apr 2004 13:45:12 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BGjC8-0001TS-00 for ding@lists.math.uh.edu; Thu, 22 Apr 2004 13:45:08 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BGjC4-0000eu-Al for ding@lists.math.uh.edu; Thu, 22 Apr 2004 13:45:04 -0500 Original-Received: from clifford.bwh.harvard.edu (clifford.bwh.harvard.edu [134.174.9.41]) by justine.libertine.org (Postfix) with ESMTP id 129E93A0027 for ; Thu, 22 Apr 2004 13:45:01 -0500 (CDT) Original-Received: from asimov (asimov [134.174.9.63]) by clifford.bwh.harvard.edu (8.10.2+Sun/8.11.0) with ESMTP id i3MIis126533 for ; Thu, 22 Apr 2004 14:44:55 -0400 (EDT) Original-To: ding@gnus.org X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Followup-To: ding@gnus.org In-Reply-To: <87n055nnjg.fsf@uwo.ca> (Dan Christensen's message of "Wed, 21 Apr 2004 15:22:59 -0400") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:57111 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:57111 On Wed, 21 Apr 2004, jdc@uwo.ca wrote: > Wes and Adam, thanks for the suggestions. I'm not sure who to thank, but I added the code you have below to spam.el for general use. Right now only SpamAssassin is supported, but it's intended for any backend that can score on a header. If I can get a consensus on who came up with ideas and implementation, I'll put that in the ChangeLog. The main difference is that in my version, any spam headers, not just X-Spam-Status, are supported. So, how does it work? You just use spam-initialize as usual. The only three things users will need to do: 1) (defalias 'gnus-user-format-function-S 'spam-user-format-function-S) if they want to use %uS in the summary line format. I'm considering making this a built-in, e.g. %$ but I'm not sure yet. 2) set spam-use-spamassassin, spam-use-spamassassin-headers, or spam-use-regex-headers BEFORE they run spam-initialize. Conveniently, this can now be done like so: (spam-initialize 'spam-use-spamassassin ...) which will set spam-use-spamassassin to t BEFORE any intialization is done. Very useful, and you don't need (setq spam-use-spamassassin t) before spam-initialize anymore. 3) in the groups of interest, set the group article sorting to use spam-article-sort-by-spam-status, that is, set gnus-article-sort-functions to '(spam-article-sort-by-spam-status). You may need gnus-show-threads set to nil.