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

Re: Coloring message in index for SPAM



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday, June 11 at 12:36 PM, quoth Dave Waxman:
>I am current using mutt to color messages in my index that have been
>detected by multiple different spam applications.  I am in the
>'training' phase of some of these spam applications so I am not ready to
>ignore the messages they've marked as spam.  I currently have this in my
>.muttrc to make SPAM red.
>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?

That looks like a SpamAssassin header, and if that's true, then you 
may find it useful to match on the X-Spam-Level header instead. Then 
you can do matches like this:

color index brightred default '~h "^X-Spam-Status: [*]{5,9}"'

~Kyle
- -- 
Reliability means never having to say you're sorry.
                                            -- Dr. Daniel J. Bernstein
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iD8DBQFEjHfGBkIOoMqOI14RAp5QAKDIKpM3Rt/c7qwHjZvseNjCyjjhLACfV5i3
cxyNOjtJA9+uhDwFRvPpkyo=
=Y+ZJ
-----END PGP SIGNATURE-----