From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65137 Path: news.gmane.org!not-for-mail From: jidanni@jidanni.org Newsgroups: gmane.emacs.gnus.general Subject: gnus-summary-sort-by-X-Spam-Status Date: Wed, 05 Sep 2007 08:01:01 +0800 Message-ID: <87fy1ux9oi.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1188950525 21001 80.91.229.12 (5 Sep 2007 00:02:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Sep 2007 00:02:05 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M13650@lists.math.uh.edu Wed Sep 05 02:02:04 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1ISiLK-0001mc-ML for ding-account@gmane.org; Wed, 05 Sep 2007 02:02:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1ISiKX-0005uq-Rh; Tue, 04 Sep 2007 19:01:13 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1ISiKU-0005uN-Nb for ding@lists.math.uh.edu; Tue, 04 Sep 2007 19:01:10 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1ISiKR-0004QV-2H for ding@lists.math.uh.edu; Tue, 04 Sep 2007 19:01:10 -0500 Original-Received: from lax-green-bigip-5.dreamhost.com ([208.113.200.5] helo=looneymail-a2.g.dreamhost.com) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ISiKQ-0006Yt-00 for ; Wed, 05 Sep 2007 02:01:06 +0200 Original-Received: from jidanni2 (122-127-40-194.dynamic.hinet.net [122.127.40.194]) by looneymail-a2.g.dreamhost.com (Postfix) with ESMTP id 2760616EF83 for ; Tue, 4 Sep 2007 17:00:54 -0700 (PDT) X-Spam-Score: 0.6 (/) X-Spam-Report: SpamAssassin (3.1.9 2007-02-13) analysis follows Bayesian score: 0.1030 Ham tokens: 0.000-2082--6989h-5s--0d--H*M:fsf, 0.000-1924--6460h-5s--0d--H*MI:fsf, 0.005-3--10h-0s--0d--thru, 0.007-27--92h-1s--0d--rewrite, 0.017-4364--16182h-467s--0d--int Spam tokens: 0.965-3319--837h-37440s--0d--HX-Spam-Relays-External:quimby.gnus.org, 0.965-3319--837h-37440s--0d--H*RU:quimby.gnus.org, 0.933-2432--1592h-36248s--0d--H*r:quimby.gnus.org, 0.928-2307--1720h-36282s--0d--H*r:3.35, 0.927-2307--1771h-36741s--0d--HTo:D*gnus.org Autolearn status: no 1.0 NO_REAL_NAME From: does not include a real name -0.7 BAYES_20 BODY: Bayesian spam probability is 5 to 20% [score: 0.1030] 0.4 AWL AWL: From: address is in the auto white-list List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65137 Archived-At: Gentlemen, I see there is no gnus-summary-sort-by-my-favorite-header capability. I want to sort by "X-Spam-Status: Yes, score=23.3" lines. Indeed, I need to also be sure that it does a numeric sort, so I don't have to rewrite 2.0 to 002.0. Looking at gnus-sum.el it seems this would be a very big effort, and I'm better running the messages thru a filter that would put their score (int(score*10)) into a faked existing field, so e.g., Sort by lines (`gnus-summary-sort-by-lines') or Sort by article number (`gnus-summary-sort-by-number'). can sort by it. I.e., score=23.3 becomes Lines: 233, etc. I shan't tamper with gnus-summary-sort-by-score though, as that is a whole different ball game.