Re: [Exim] Nested lookup

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Philip Hazel
Data:  
Para: sharun
CC: exim-users
Asunto: 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.