Re: [Exim] Non-numeric variables in filters

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: Nigel Metheringham
CC: Exim Users
Sujet: Re: [Exim] Non-numeric variables in filters
On Tue, 23 May 2000, Nigel Metheringham wrote:

> Both perl & python can do precompile - python to the extent where it
> saves out bytecode streams. If this function can be set up in such a
> way that in general use the daemon takes the performance hit of the
> compile and processes using the filter are forked off from it (without
> a re-exec), then the run part of the script is not going to be
> significantly slower than straight C (especially when you allow for the
> very good regexp handling in perl which is much harder to duplicate in
> C even with decent libraries).


Sadly, this isn't going to work unless you give up on some security. The
daemon is running as the Exim user; it has to re-exec to get back root
privilege in order to do a delivery, unless you abandon the use of the
Exim user and run as root all the time.

I seem to recall seeing something in Perl 5.6 about compiling and saving
the bytecode.

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