Re: [exim] Problem with condition

Etusivu
Poista viesti
Vastaa
Lähettäjä: John Horne
Päiväys:  
Vastaanottaja: exim-users
Aihe: Re: [exim] Problem with condition
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: John.Horne@???       Fax: +44 (0)1752 233839