Re: [Exim] Condition with and

Pàgina inicial
Delete this message
Reply to this message
Autor: Kirill Miazine
Data:  
A: exim-users
Assumpte: Re: [Exim] Condition with and
* Kirill Miazine [2002-10-14 13:07]:
> > 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}}"

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


I've reformatted the condition somewhat and modified it. Test whether
this works.

condition = ${if and { \
    {!eq {${lookup pgsql{SQL_REJECT_LIST}}} {${lc:$sender_address}} } \
    { eq {${lookup pgsql{IS_A_LIST}}} {${lc_$local_part}} } \
                     } {true}{false}}


P.S. %-key in vi is your friend :)

--
Kirill