Re: [EXIM] Today's hack: a perl director for exim

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: Adrian Phillips
CC: exim-users
Sujet: Re: [EXIM] Today's hack: a perl director for exim
On 14 Oct 1998, Adrian Phillips wrote:

> >>>>> "Malcolm" == Malcolm Beattie <mbeattie@???> writes:
>
> <perl/exim proof-of-concept snipped>
>
> This is truly amazing.


Agreed! And thank you for doing the work. There have been various
requests for this sort of thing from time to time, so there may well be
some takers for this.

>     Malcolm> If anyone can think of any real applications, I'd be
>     Malcolm> interested (and only slightly surprised). I'd imagine a
>     Malcolm> perl transport (which let you do fancy things and
>     Malcolm> "deliver" a message in the context of exim itself) may be
>     Malcolm> the most likely perl driver to be of use. Or maybe a
>     Malcolm> generic Perl code "lookup" thing (${lookup {key} perl
>     Malcolm> {some_perl_sub} {arg}}).


It seems to me that the simplest generic thing would be the lookup
thing. You could in fact use that with smartuser to do almost all the
things your perl director does, couldn't you? (Except for FORCEFAIL. But
smartuser can be extended...)

Another possiblility would be to add a ${perl: operator to the expansion
syntax, so that any expanded string anywhere could call Perl. This would
make the "condition" option unbelievably flexible, for a start.

Is a Perl transport very different from piping the message to a Perl
script?

Anyway, I will take a look at the patch "in due course" (my usual
cop-out :-) and think about whether I want to incorporate any of it in
the distribution. It could always be done with a compile-time option, to
include it only if wanted.

Philip

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



--
*** Exim information can be found at http://www.exim.org/ ***