Kai Henningsen writes: > How about making it possible to write a driver (router, director,
> transport) in Perl? All sorts of interesting things could be done that
> way. Interface: well, whatever is easiest to implement, I guess :-)
When the initial suggestion for embedding Perl in Exim was made. I
started off by looking at having a perl driver. It turned out to be
much easier just to add the ${perl...} function and, according to
others, it seemed to cover most of what people thought they might
need it for. (I've still no idea whether anyone actually *uses* the
perl-in-exim facility :-).
The added work in doing a perl driver is that I need to add more XSUBs
which call out to Exim's internal functions and also convert stuff
so that data in Perl is in a Perlish form but passed to Exim in Exim's
own format. That means actually reading more of Exim and grunt work
writing XSUBs compared to the afternoon hack that brought about
${perl...}. If you can think of particular examples of what you want
to do with a Perl driver (generating new addresses from a director,
deciding where/how to route in a router, pulling out various bits of
the mail (meta)data itself in a transport) then let me know. If it
looks as though there's something interesting to be done in that
direction, I'll see what I can do.
--Malcolm
--
Malcolm Beattie <mbeattie@???>
Unix Systems Programmer
Oxford University Computing Services