Re: [exim] Router condition

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Mike Cardwell
Dátum:  
Címzett: exim-users
Tárgy: 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/