Re: [Exim] Condition with and

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Kirill Miazine
Datum:  
To: exim-users
Betreff: Re: [Exim] Condition with and
* Jan Suchanek [2002-10-14 12:25]:
> Hello,
>
> I have a little problem with using a condition with "and". I have
> following condition:
>
> condition =     "${if and {\
>                                 {!eq\
>                                         {{${lookup
> pgsql{SQL_REJECT_LIST}}}{lc:$sender_address}}\
>                                 }\
>                                 {eq\
>                                         {{${lookup
> pgsql{IS_A_LIST}}}{lc:$local_part}}\
>                                 }\
>                         }{true}{false}}"

>
>
> The idea is that the transport is called by this router when both
> conditions are true. When I try the condition with some test cases I can
> see (with -d) that in some cases one,both or none of the lookups fail
> but the router is called every time.
>
> Any ideas what I am doing wrong (or a hint how I can debug the condition
> any further)?


lc:$sender_address becomes lc:sender@???. You want
to use ${lc:$sender_address} and ${lc:$local_part}.

--
Kirill