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

Pàgina inicial
Delete this message
Reply to this message
Autor: Anand Buddhdev
Data:  
A: steven
CC: exim-users
Assumpte: 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