Re: [Exim] lookup question

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: Kelley Reynolds
CC: Tony Finch, exim-users
Assumpte: Re: [Exim] lookup question
On Mon, 27 Oct 2003, Kelley Reynolds wrote:

> Unfortunately, for a text lookup to occur in pgsql, it has to be
> surrounded by single quotes (tried double quotes, and pgsql threw an
> error). So, the following *should* work, but doesn't.
>
> command = "${lookup pgsql{select homedir from domains where domain='$domain' limit 1} {$value} mail}/mailman/mail/mailman"


I see the problem. Because the entire value of the option is quoted, the
quotes are being stripped when the value is read. Try

command = "\"....'$domain' .... \""


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book