You need to terminate your pattern - like with $ - otherwise it will not care what characters come after the first two *
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Behalf Of Jon Nathan > Sent: Monday, February 16, 2004 9:54 AM > To: [EMAIL PROTECTED] > Subject: headers regex > > > Hi, > > I'm using spamassassin in front of tmda in my mail filtering chain. > I'd like to allow messages with very low Spam-Level scores through > without a challenge. Sort of the inverse of the methodology described > here: > > http://mla.libertine.org/tmda-users/2003-10/msg00246.html > > This is my filter rule: > > # SpamAssassin - allow hammy messages through > headers '^X-Spam-Level:\s\*{0,2}' ok > > Somehow TMDA's allowing messages with 4 asterisks through though: > > X-Spam-Level: **** > > X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on > froody.rupture.net > X-Spam-Status: No, hits=4.9 required=5.0 > tests=RCVD_IN_BL_SPAMCOP_NET, > RCVD_IN_DYNABLOCK,RCVD_IN_SORBS autolearn=no version=2.63 > > X-TMDA-Action: OK (headers "^X-Spam-Level:\s\*{0,2}" ok) > > Status: RO > > Content-Length: 1082 > > Lines: 38 > > What am I doing wrong? > > ... > > After a little poking, I decided to just do this through procmail, > negating a match on asterisks: > > # let hammy msg through > :0: > * ! ^X-Spam-Level:.(\*) > $HOME/mail/mbox > > But in any case, what was I doing wrong with the headers regex? > > Thanks, > > -jon > > -- > Jon Nathan > [EMAIL PROTECTED] > > > _____________________________________________ > tmda-users mailing list ([EMAIL PROTECTED]) > http://tmda.net/lists/listinfo/tmda-users > _____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users
