Howdy list,

I'm running an email server on FreeBSD 4.8-RELEASE
with qmail-1.03.

I just wrote a python script that uses some modified
TMDA functions to conditionally block incoming emails
in conjunction with qmail-qfilter and the QMAILQUEUE
patch for qmail-smtpd.

Now that I'm done ( :-< ), I realize that the email
module loads the entire email message into memory,
even if I'm using the HeaderParser class.

Geez... that's not good for me. I ONLY want to parse
the headers, and I'd really prefer to not load the
message body into RAM at all, since this is an email
server, and I'm using softlimit to limit the size of
my qmail-smtpd pipline's memory consuption. And...
well... it's an email server. It runs a lot of
processes. I'd like to keep RAM consumption to a
minimum.

Can anyone think of a quick fix that would allow
me to parse headers, but store the email on disk,
or, better yet, not consume the body of the email
at all until I'm ready to send it to STDOUT? (And
then only on a line-by-line basis.)

Or am I going to have to hack the email module?

BTW, I mention this here because I think it's relavent
to TMDA. Some people might not want TMDA loading entire
message bodies, including attachments, into RAM. Heck,
I sure don't!

Thanks!

-- 
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net


_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to