RE: [Exim] condition question

Etusivu
Poista viesti
Vastaa
Lähettäjä: John Horne
Päiväys:  
Vastaanottaja: exim-users
Aihe: RE: [Exim] condition question
On 04-Dec-00 at 16:16:58 George Schlossnagle wrote:
> I am trying to to require two conditions to be met on a specific
> transport:
>
> "${if and {{${lookup mysql{select login from accounts where
> login='${local_part}'}{$value}fail}}{${perl{attach_check}{${message_body}}}
> }}}
>
> I keep getting misplaced { }'s errors. Any thoughts/suggestions?
>

Without looking further you do not seem to have an ending double quote (").
Is that true or it just didn't copy into the message you sent?

Second point is that whilst you seem to have the braces matched up, you do
not specify a true or false result - perhaps:

"${if and {{${lookup mysql{select login from accounts where
login='${local_part}'}{$value}fail}}{${perl{attach_check}{${message_body}}}
}} {true} {false}}"

John.


John.

------------------------------------------------------------------------
John Horne, University of Plymouth, UK           Tel: +44 (0)1752 233914
E-mail: jhorne@???
PGP key available from public key servers