<<< Date Index >>>     <<< Thread Index >>>

Re: Coloring message in index for SPAM



* Dave Waxman on Sunday, June 11, 2006 at 16:20:05 -0400:
> On Jun 11 19:40, Christian Ebert wrote:
>> * Dave Waxman on Sunday, June 11, 2006 at 12:36:09 -0400:
>>> color index brightred default '~h "X-Spam-Status:.*score=(4|5)."'
>>> However, the problem is that a lot of the SPAM is getting ratings well
>>> above 5.  How can I tell this statement to flag messages that are, for
>>> example, 4> but <10?
>> 
>> Don't know how exactly your spam header looks like but perhaps:
>> 
>> color index brightred default '~h "^X-Spam-Status:.*score=[5-9]."'
> 
> This came back with an error about it being an invalid range.

Strange. Just tried

color index brightblue default '~h "^Return-Path:.*mutt-users.+[7-9]="'

in my mutt-users box and it matches, as it should, eg. your
message opening this thread:

|Return-Path: owner-mutt-users+M4358=blacktrash=gmx.net@xxxxxxxx
                                   ^
ie. all message that have a number in range 7-9 before the first
`=' in Return-Path.

But it's probably wiser to use the spam command and ~H pattern
anyway.

c
-- 
_B A U S T E L L E N_ lesen!  --->> <http://www.blacktrash.org/baustellen.html>