Re: [Exim] Accessing environment variables in exim as variab…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Philip Hazel
Dátum:  
Címzett: Eli
CC: exim-users
Tárgy: Re: [Exim] Accessing environment variables in exim as variables?
On Wed, 7 Jan 2004, Eli wrote:

> The only problem is... I see no way of accessing environment
> variables in Exim?


That is because Exim is called in unpredictable environments, and also
because it is called from user (i.e. potentially hostile) environments.
Relying on environment variables seems rather dangerous to me.

> However, it still would be nice to be able to do something like
> $env_<environment variable> to access env vars in places.


I think this would be utterly confusing. People would think they could
do this in routers and filters. But if a message is delayed, the
environment is different when the next delivery happens from a queue
runner. Or do you think the environment should be preserved with each
message?


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book