On Thu, 2006-07-27 at 13:51 +0200, Kai Riasol wrote:
> Hi,
> 
> i have a problem with the following router.
> 
> all of our emails pass thrue the spamassassin which marks the emails 
> like "X-SA-Spambar: ++++++++".
> I have build this router which apply to all emails for the domain1.de. 
> Also emails with one "+".  But i want that the router only apply if the 
> "X-SA_Spambar:" has minum five or more of "+".
> 
> virtual_local_spam_mailbox:
>  driver = accept
>  domains = domain1.de
>  condition = ${if eq{$h_X-SA-Spambar:}{+++++}}
>
I suspect that condition will only work if you have exactly 5 '+'.
Try using:

   condition = ${if match{$h_X-SA-Spambar:}{\N\+\+\+\+\+\N}}

This should match if there are 5 or more '+'.




John.

-- 
---------------------------------------------------------------
John Horne, University of Plymouth, UK  Tel: +44 (0)1752 233914
E-mail: [EMAIL PROTECTED]       Fax: +44 (0)1752 233839

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to