On wto, 2008-10-21 at 14:49 +0100, Martin Gregorie wrote: > > > Ok, it's getting better now but all my emails are forwared to > > > [EMAIL PROTECTED] > > > Even those which are not tagged as [SPAM] > > > I guess i have some troubles with the regular expression. > > > Can you help me in the syntax issue? > > Well... strange. Because the pattern you specified should match only those > > positively scored. (or having hit some rule with YES in name (I dunno if > > there are any such rules)). > > /^X-Spam-Status:[.*](Yes|YES)/ REDIRECT [EMAIL PROTECTED] > Unless my brain is really out to lunch, the problem is the "[.*]".
Yes, seems you're right. I must have slept too little tonight ;-) > > But it seems you're using pcre but declare it as "normal" regexp. (I > > think pcre introduce the alternative notation with parentheses). > The online manual says Postfix can use a POSIX regex or pcre. Sure, but IIRC you have to tell postfix which form you're using by putting either pcre: or regexp: in the config. -- /\-\/\-\/\-\/\-\/\-\/\-\/\ I WILL NOT USE ABBREV.(Bart Simpson on \ [EMAIL PROTECTED] / chalkboard in episode 2F33) / http://epsilon.eu.org/ \ \/-/\/-/\/-/\/-/\/-/\/-/\/