Forum OpenACS Q&A: non-java webmail module
nsjava, nstomcat, or any java interpreter at all. This isn't to step
on anyone developing the java version's toes, I just want to see what
I come up with.
I am thinking of something that simply deals with qmail maildirs. My
current inclination is to hack apart one of the existing qmail-webmail
interfaces (all cgi-bin scripts; see http://www.qmail.org/top.html for
a list) and replicate the functionality with AOLserver TCL. Before I
get too much further, I was wondering if anyone has done anything like
this already. Code examples or architecture ideas would be very cool.
Post them here, or email me directly. When I have something cobbled
together, I'll post an announcement here.
As far as processing each individual message, any library that implements mime encoding/decoding will probably work whether its written in java or tcl or whatever. Look at how the java code currently processes a maildir file. It just reads it in and passes it along to the javamail package. No special qmail related processing is done for the message file.
In the openacs webmail module the java code is only used for access to the javamail api which does the mime encoding/decoding. It would be quite easy to replace this code with something equivalent written in tcl. As a start you might trying searching the dev.scriptics.com site to see if a mime library module already written in tcl exists.
Tcl 8.2 has some serious memory leaks that have yet to be fixed. AOLserver.com rolled back to 7.6 because of this (sigh). aD is in a bit of a quandry as to what to do, last time I looked.
If you knock down your service each night you're probably OK but otherwise, your system will eventually hit the memory wall.
Just thought you might want to know this...
Re: memory usage
Yeah, I know all about the memory leaks. aD now has (I think) a copy of purify. Hopefully they will solve that problem for me. Hasn't AOL run into this problem, or do they just run nsd76?