Re: [Exim] Nested lookup

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: sharun
CC: exim-users
Assumpte: Re: [Exim] Nested lookup
On Tue, 16 Apr 2002 sharun@??? wrote:

> Does exim4 support nested lookups ?


If you get the syntax right. :-)

> I need a lookup where the lsearch key is the result of sql query.
>
> message = ${lsearch{${lookup mysql \
>     {select flags from user where username='$local_part}}{/path/to/file}}}


That syntax isn't right. There are at least two things wrong with it.

Exim should complain to you that it doesn't recognize ${lsearch. Is that
enough of a clue?


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.