Re: [Exim] Can I use ${perl{...}} in local_domains somehow ?

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Philip Hazel
Data:  
Para: Peter Galbavy
CC: exim-users
Assunto: Re: [Exim] Can I use ${perl{...}} in local_domains somehow ?
On Mon, 26 Feb 2001, Peter Galbavy wrote:

> > (a) Expand the text of local_domains so that it is a different list
> > every time?
> > (b) Run a perl program that says "yes this is a local domain"?
>
> The first - pass $key to a Perl script, done through the second in this
> case. I suggest that the first case is a generalisation of the second.


Yes, indeed. I realized that.

I will bear this in mind for Exim 4.

> In general, I could see a future time when people may write, and you may
> accept ${tcl} , ${python}, ${...} whatever, as valid expansion operators
> using all the other well known embeddable scripting languages. That was the
> thought in the back of my head to do 'expand' rather than 'perl' as a
> lookup.


If the string were actually expanded in the first place, you wouldn't
need a separate 'lookup'. (Or, more conveniently, if each item in the
list were expanded.)


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.