On Fri, 19 Sep 2003, Chris Barnes wrote:

> piece of /etc/mail/spamassassin/local.cf:
> # Local Mods
> bayes_ignore_header X-PerlMx-Spam          # make Bayes do it on its own
> header LOCAL_PERLMX_TAG_100  /X-PerlMX=~ /\b Probability=100\%/
> score  LOCAL_PERLMX_TAG_100     5
> header LOCAL_PERLMX_TAG_90  /X-PerlMX=~ /\b Probability=9[0-9]\%/
> score  LOCAL_PERLMX_TAG_90      3
> header LOCAL_PERLMX_TAG_80  /X-PerlMX=~ /\b Probability=8[0-9]\%/
> score  LOCAL_PERLMX_TAG_80      2
> header LOCAL_PERLMX_TAG_70  /X-PerlMX=~ /\b Probability=7[0-9]\%/
> score  LOCAL_PERLMX_TAG_70      1
>
>
> Ok, so what's wrong with my rule?

Did you '--lint' these?
I see several things that don't look right.

What's with that slash in the header name? (The "/X-PerlMX" thing.)
Isn't the header name actually "X-PerlMx-Spam"?
You don't have a space between the header name and the match op.
Are you sure that you want that word-break and then space before the
"Prob..."

Try:
   header LOCAL_PERLMX_TAG_100  X-PerlMx-Spam =~ /\sProbability=100\%/


-- 
Dave Funk                                  University of Iowa
<dbfunk (at) engineering.uiowa.edu>        College of Engineering
319/335-5751   FAX: 319/384-0549           1256 Seamans Center
Sys_admin/Postmaster/cell_admin            Iowa City, IA 52242-1527
#include <std_disclaimer.h>
Better is not better, 'standard' is better. B{



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to