Martin Gregorie-2 wrote:
> 
> On Tue, 2008-10-21 at 14:58 +0200, Mariusz Kruk wrote:
>> On wto, 2008-10-21 at 05:38 -0700, mathiasadsl 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 "[.*]". This
> matches a single character which may be a stop or an asterisk. Try the
> following:
> 
> /^X-Spam-Status:.*(Yes|YES)/ REDIRECT [EMAIL PROTECTED]
> 
>> 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.
> 
> 
> Martin
> 
> 
> 
> 


OK, i've just tried your new regular expression but it doesnt work better.
Nothing happened. The email is still tagged as [SPAM] and is delivered to
user.

How can i write with regular expression the following?
"If [SPAM] is included in the subjet Redirect to [EMAIL PROTECTED]".

It sounds easy but nothing works.

Best regards,
Mathias

-- 
View this message in context: 
http://www.nabble.com/Need-Help-For-Redirecting-SPAM-to-a-mailbox-tp20088706p20090989.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.

Reply via email to