From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/54995 Path: main.gmane.org!not-for-mail From: spamtrap@koldfront.dk (=?iso-8859-1?q?Adam_Sj=F8gren?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-summary-sort-by-spamicity (bogofilter) Date: Sun, 30 Nov 2003 16:27:13 +0100 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Sender: ding-owner@lists.math.uh.edu Message-ID: <87vfp1ri5q.fsf@virgil.koldfront.dk> References: <87brssb9cg.fsf@mulligatwani.msrl.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1070206080 11762 80.91.224.253 (30 Nov 2003 15:28:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Nov 2003 15:28:00 +0000 (UTC) Original-X-From: ding-owner+M3535@lists.math.uh.edu Sun Nov 30 16:27:58 2003 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 1AQTUM-0000We-00 for ; Sun, 30 Nov 2003 16:27:58 +0100 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 1AQTTn-0001o4-00; Sun, 30 Nov 2003 09:27:23 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1AQTTj-0001nz-00 for ding@lists.math.uh.edu; Sun, 30 Nov 2003 09:27:19 -0600 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id 014393A0025 for ; Sun, 30 Nov 2003 09:27:16 -0600 (CST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AQTTf-0002hI-00 for ; Sun, 30 Nov 2003 16:27:15 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AQTTd-0002h8-00 for ; Sun, 30 Nov 2003 16:27:13 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AQTTd-00032l-00 for ; Sun, 30 Nov 2003 16:27:13 +0100 Original-Lines: 57 Original-X-Complaints-To: usenet@sea.gmane.org X-Face: YR:#}ygvn Here is what I use for Spamassassin scores. It should be easy to > adapt to bogofilter. [...] > (add-to-list 'nnmail-extra-headers 'X-Spam-Status) > (defun gnus-article-sort-by-spam-status (h1 h2) > "Sort articles by score from the X-Spam-Status: header." > (< (string-to-number (gnus-replace-in-string > (gnus-extra-header 'X-Spam-Status h1) > ".*hits=3D" "")) > (string-to-number (gnus-replace-in-string > (gnus-extra-header 'X-Spam-Status h2) > ".*hits=3D" "")))) I'm trying to make this work on my nnml:spam-group, but for some reason I can't figure out, X-Spam-Status isn't returned by gnus-extra-header. My group-parameters for the group are: ((gnus-show-threads nil) (gnus-extra-headers '(X-Spam-Status To Newsgroups)) (gnus-article-sort-functions '(gnus-article-sort-by-spam-status))) (I stumbled over the gnus-extra-headers variable and tried to set that as well as nnmail-extra-headers, but it didn't make any difference it seems). I do a M-x edebug-defun on gnus-article-sort-by-spam-status (located in my ~/.gnus) and when I step through the function (upon entering nnml:spam), I get this in the *Message-log*: Fetching headers for nnml:spam... Fetching headers for nnml:spam...done Result: [23918 "hot adult stars and more" "\"Merlin Moody\" " "Mon, 01 Dec 2003 11:36:12 +0000" "" "" 661 13 "virgil.koldfront.dk= spam:23918" ((To . "asger@diku.dk, asjo@diku.dk, atlas@diku.dk"))] Which I find odd, because the spam does have an X-Spam-Status line: $ grep X-Spam-Status Mail/spam/23918=20=20=20=20=20 X-Spam-Status: Yes, hits=3D13.3 required=3D5.0 tests=3DBAYES_99,BIZ_TLD,CL= ICK_BELOW, $ I'm trying to figure out where to look next, but I'm a little lost right now. Any pointers? Best regards, --=20 "Do not feed the oysters under the clouds" Adam Sj=F8gren asjo@koldfront.dk