Re: [Exim] lookup question

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Philip Hazel
日付:  
To: Kelley Reynolds
CC: Tony Finch, exim-users
題目: 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