Re: [exim] Router condition

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Jakub Čermák
Data:  
Para: exim-users
Assunto: Re: [exim] Router condition
I tried both. At least I think I did - the 2nd paragraph is with {YES} and 3rd with just YES. Or am I mistaken?

S pozdravem / Best regards

Jakub Čermák


-----Original Message-----
From: exim-users-bounces@??? [mailto:exim-users-bounces@exim.org] On Behalf Of Mike Cardwell
Sent: Friday, August 21, 2009 3:38 PM
To: exim-users@???
Subject: Re: [exim] Router condition

Jakub Čermák wrote:

> 2009-08-21 14:18:37 1MeFj2-0002yY-9v failed to expand condition "${if and{{eqi{$h_X-Spam-Flag}}{${lookup mysql {SELECT home FROM passwd WHERE email='${quote_mysql:${local_part}@${domain}}'}}}}" for mysql_user_spam router: missing 2nd string in {} after "eqi" inside "and{...}" condition
>
> So I tried adding {YES} or {"YES"} after the eqi{$h_X-Spam-Flag}, so it looked like "${if and{{eqi{$h_X-Spam-Flag}{YES}}{${lookup mysql {SELECT home FROM passwd WHERE email='${quote_mysql:${local_part}@${domain}}'}}}}" but the error is still the same.
>
> And adding YES instead of {YES} yielded in 2009-08-21 14:29:31 1MeFj2-0002yd-BP failed to expand condition "${if and{{eqi{$h_X-Spam-Flag}YES}{${lookup mysql {SELECT home FROM passwd WHERE email='${quote_mysql:${local_part}@${domain}}'}}}}" for mysql_user_spam router: missing 2nd string in {} after "eqi" inside "and{...}" condition error
>
> What I'm doing wrong?


Sorry. I didn't address the second part of your email in my last
response. You said you changed it to:

eqi{$h_X-Spam-Flag}{YES}

But according to the error message you quoted, you actually changed it to:

eqi{$h_X-Spam-Flag}YES

The first is valid. The second isn't.

--
Mike Cardwell - IT Consultant and LAMP developer
Cardwell IT Ltd. (UK Reg'd Company #06920226) http://cardwellit.com/

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