Re: [exim] Transport storing informations

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Jeremy Harris
Date:  
À: exim-users
Sujet: Re: [exim] Transport storing informations
On 11/07/13 16:12, Cyborg wrote:
> is it possible to have an sql select inside a transport who queries
> informations and stores them in reusabel variables ..
>
> i.e.
>      ..
>      var_x = $lockup{select id from mailboxes where localpart='$localpart'}
>      transport_filter = 'filterfile' '$localpart@$domain' '$var_x'
>      ...


Currently no. For the example you show you're only using once so
could have just put the lookup in the transport_filter line.

Note that lookups are cached, so the overhead is small for just
repeating one.
-- 
Cheers,
    Jeremy