> I want to only show a a spam status header when the score is positive.
> In other words,
> 
>         X-Spam-Status:\ No,\ score=2.4...
> 
> should be displayed, but
> 
>         X-Spam-Status:\ No,\ score=-2.4...
> 
> shouldn't.

Consider upgrading to mutt 1.5.  Then you can do this:

spam "X-Spam-Status: Yes, score=([^-][^ ]+)" "%1"

Now %H in your $index_format will expand to a message's spam score, but
only if it's positive.

-- 
 -D.    [EMAIL PROTECTED]    NSIT    University of Chicago

Reply via email to