Re: [Exim] Condition with and

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Jan Suchanek
Data:  
Para: exim-users
CC: km
Asunto: Re: [Exim] Condition with and
This is a cryptographically signed message in MIME format.
--
Hello

> 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}}


this is exactly what I needed. This condition works now. But the one
giant leap for me was the hint to use "exim -be". I was able to figure
out, that perhaps the parser likes the condition but the result is not
the one I hoped I would get. But the condition above save me again a lot
of work - thank you very much!

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


I really thought the number of the curly brackets is correct - only the
place was wrong... live and learn... ;-)

Greetings and thanks again, Jan Suchanek



--
Jan Suchanek,
Universitaet Ulm,
Abteilung Medieninformatik,
Fakultaet fuer Informatik,

89069 Ulm, Germany
Raum: O27/3302

Tel.: +49/(0)731-5031312, Fax: +49/(0)731-5031302

--
Content-Description: S/MIME Cryptographic Signature

[ smime.p7s of type application/x-pkcs7-signature deleted ]
--