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

Re: unignore and regular expression help needed



On 2008-11-06, Steve Searle <steve@xxxxxxxxxxxxxxx> wrote:
> 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.
> 
> I have tried:
> 
>         unignore X-Spam-Status:\ No,\ score=[^-]
> 
> expecting all lines that don't have a negative score to be displayed,
> but this doesn't work.
> 
> Even
> 
>         unignore X-Spam-Status:\ No,\ score=[23]
> 
> doesn't work, when I tried that as part of debugging.  However the
> following does work:
> 
>         unignore X-Spam-Status:\ No,\ score=2
> 
> What am I doing wrong?

The ignore command doesn't use regular expressions.  It compares the 
string you supply with the leading portion of each header.

Regards,
Gary