Re: [Exim] lookup question

Pàgina inicial
Delete this message
Reply to this message
Autor: Phil Pennock
Data:  
A: Kelley Reynolds
CC: exim-users
Assumpte: Re: [Exim] lookup question
On 2003-10-27 at 15:42 -0500, Kelley Reynolds wrote:
> My fault, let me be more explicit.


I know that feeling too well. :^)

> command = "${lookup pgsql{select homedir from domains where domain='$domain' limit 1} {$value} mail}/mailman/mail/mailman"
>
> According to 28.2, things inside double-quotes are escaped, but just to check I escaped the single quotes and still it gave the error of "missing lookup type"
>
> Is there something eluding me, or are the double-quotes not being used properly for the 'command' portion of pipe as opposed to the 'argument' portion?


Any luck with the per-lookup-type quote operators? Do they force
correct context for you?

Something like (untested):
command = "${lookup pgsql{select homedir from domains where domain=${quote_pgsql:$domain} limit 1} {$value} {mail}}/mailman/mail/mailman"

nb: this is with a default location for mailman of the "mail" directory;
should that be some path, or (being unquoted) should that have been
"fail" instead of "mail"?
--
2001: Blogging invented. Promises to change the way people bore strangers with
banal anecdotes about their pets. <http://www.thelemon.net/issues/timeline.php>