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

Re: unignore and regular expression help needed



> 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.    dgc@xxxxxxxxxxxx    NSIT    University of Chicago