Re: [Exim] Access to the "yield" of lookup

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Anand Buddhdev
日付:  
To: steven
CC: exim-users
題目: Re: [Exim] Access to the "yield" of lookup
On Thu, May 20, 2004 at 02:03:02PM -0700, steven@??? wrote:

> In a router I wish to access the results of a lookup by using a sequence like
>
>    condition = ${lookup pgsql{select ...
>    header_add = X-Aheader : $value


If your pgsql lookup returns only one field, then:

header_add = X-Aheader: $address_data

If the pgsql lookup returns multiple fields:

header_add = X-Aheader: ${extract {fieldname} {$address_data} }

--
Anand Buddhdev
Celtel International