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

Re: Make . match newlines too?



* On Thu, Feb 05, 2004 at 08:04:02AM -0500 Mike Schiraldi wrote:
> I have an entry in my .muttrc to colorize in red any messages that
> SpamAssassin's Bayesian filter identifies as spam with 99% certainty:
> 
> color index red black '~hX-Spam-Status:.*BAYES_99'
> 
> However, it doesn't work when the BAYES_99 is on another line, like this:
> 
> X-Spam-Status: Yes, hits=18.8 required=5.0 tests=ADDR_NUMS_AT_BIGSITE,
>         BAYES_99,CLICK_BELOW_CAPS,FORGED_YAHOO_RCVD,FROM_ENDS_IN_NUMS,
>         HTML_70_80,HTML_FONTCOLOR_RED,HTML_FONT_BIG,HTML_LINK_CLICK_CAPS,
>         HTML_LINK_CLICK_HERE,HTML_MESSAGE,MIME_HTML_NO_CHARSET,MIME_HTML_ONLY,
>         SUBJ_ALL_CAPS autolearn=no version=2.61
> 
> Is there a regexp i can write that will match such lines? Or, by any chance,
> has the behavior of ~h patterns been changed to match across all lines of a
> given header since the last time i upgraded? (I'm using 1.5.4i).

Don't know about previous versions but on 1.5.5.1i the following works
for me.

color index red black '~hBAYES_99'

Mark

-- 
Mark Frank
Director of Technical Services - eDoxs Corp.
mfrank at edoxs dot com
"The fix is only temporary...unless it works." - Red Green