[25664] in SIPB bug reports

home help back first fref pref prev next nref lref last post

mutt spam sorting support

daemon@ATHENA.MIT.EDU (John Hawkinson)
Fri Aug 4 22:58:15 2006

From jhawk@MIT.EDU Sat Aug 05 02:58:15 2006
Return-Path: <jhawk@MIT.EDU>
Delivered-To: bug-sipb-mtg@CHARON.mit.edu
Received: (qmail 7438 invoked from network); 5 Aug 2006 02:58:15 -0000
Received: from biscayne-one-station.mit.edu (18.7.7.80)
  by charon.mit.edu with SMTP; 5 Aug 2006 02:58:15 -0000
Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])
	by biscayne-one-station.mit.edu (8.13.6/8.9.2) with ESMTP id k752wB8h003793;
	Fri, 4 Aug 2006 22:58:11 -0400 (EDT)
Received: from multics.mit.edu (MULTICS.MIT.EDU [18.187.1.73])
	(authenticated bits=56)
        (User authenticated as jhawk@ATHENA.MIT.EDU)
	by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id k752vxBv022893
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT);
	Fri, 4 Aug 2006 22:57:59 -0400 (EDT)
Received: (from jhawk@localhost) by multics.mit.edu (8.12.9.20060308)
	id k752vw5e014916; Fri, 4 Aug 2006 22:57:58 -0400 (EDT)
Date: Fri, 4 Aug 2006 22:57:58 -0400 (EDT)
Message-Id: <200608050257.k752vw5e014916@multics.mit.edu>
To: yak@MIT.EDU, bug-sipb@MIT.EDU
Subject: mutt spam sorting support
From: John Hawkinson <jhawk@MIT.EDU>
X-Spam-Score: 1.217
X-Spam-Level: * (1.217)
X-Spam-Flag: NO
X-Scanned-By: MIMEDefang 2.42

mutt 1.5.12 has native support for external spam scoring. I think
it would make sense to turn it on in the default Muttrc. I'm using:

set imap_headers="X-Spam-Score"
spam "X-Spam-Score:.(.*)" "%1"

And then displaying it in the index with %-3.3H:

set index_format="%4C %Z %-3.3H %[%b %d] %-15.15L (%4c) %s"

But given that the default index_format is slightly different
from mine:

# set index_format="%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s"

A better choice would probably be:

set index_format="%4C %Z %-3.3H %{%b %d} %-15.15L (%?l?%4l&%4c?) %s"

This lets you sort on spam score (with 'o'), as well as do limits with
it ('%H' operand to 'l'), and of course, see it in the
index. Obviously the index is the most contentious choice.

--jhawk

home help back first fref pref prev next nref lref last post