This seems similar to another project I saw called SCOPEE that Thomas Loo was working on. Maybe you guys can collaborate and make each one better. -----Original Message----- From: Davide Libenzi [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 3:22 PM To: XMail mailing list Subject: [xmail] Re: Embeded perl filters for XMail
On Wed, 5 May 2004 [EMAIL PROTECTED] wrote: > Hi - > > Last year I developed a library of c functions to embed the perl > interpreter into c/c++ applications. After several successful > deployments, I decided to try to 'embed' perl in the XMail server. > > It works! I have been running it on my personal XMail server for > several days and have yet to encounter problems. There's a better solution that does not involve tweaking the XMail source code. You have one (or more) pre-loaded Perl interpreters running as servers bound on certain TCP ports, and you have a very small binary (cperl, written in C using sockets) that talks a trivial protocol with the Perl interpreters. You "external" command call will change from: "perl /home/davide/myscript.pl" to: "cperl -s localhost -p 17171 /home/davide/myscript.pl" If the script is not already loaded in the interpreter, it will be at client connection time. Do I have to proceed? :-) - Davide - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
