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

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Anand Buddhdev
Date:  
À: steven
CC: exim-users
Sujet: 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