[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: exim router condition problem: checking if a mail is a virus before spamchecking



* Benedict Verheyen (linux4bene@pandora.be) [030924 16:34]:
> Hello,
> 
> now that my mail setup checks for virusses and spam, i found another
> thing i could improve. A mail is now checked for spam even though it
> might already be tagged as a virus. So i wanted to change that so if a
> mail is tagged as a virus, there really isn't the need to check it for
> spam.
> 
> I tried to adjust my spamcheck router like so but this gives an error
> saying that the last condition in the "and" is not correct.
> 
> This is the condition:
>    condition"${if and { {!def_hX-Spam-Flag:} \
>                         {!eq {received_protocol}{spam_scanned}} \
>                         {!def_hX-Amavis-Alert: INFECTED} } {1}{0}}"
> 
> The last line and specifically the def_hX-Amavis-Alert: is what i added
> and doens't work *grin*

def:h_X-Spam-Flag: (this is the syntax I remember using; does
def_hX-Spam-Flag: work too, or is that a typo?) is true if there exists
a header X-Spam-Flag.  It's not a pattern match.  You probably want
something like match{$h_X-Amavis_Alert}{^INFECTED$}.

good times,
Vineet
-- 
http://www.doorstop.net/
-- 
http://www.anti-dmca.org/	

Attachment: pgpM9wE8xehDR.pgp
Description: PGP signature


Reply to: