PyBalsa?

Henning Schroeder hschroeder at gmx.net
Thu May 18 16:17:20 EDT 2000


Donn Cave <donn at u.washington.edu> wrote:
> Quoth Donn Cave <donn at u.washington.edu>:
> ... [ re expeditious processing of mail ]

> | ... I think MxTextTools might be a good
> | compromise to think about, it's a generic lexical analyzer that can
> | quickly chop up stuff in formats like RFC822, leaving the interesting
> | parts of the logic up there in the Python layer.

> Just to follow up, I did try that - replaced rfc822 & mimetools with
> an MxTextTools based module.  Results were good, roughly twice as fast,
> but I don't know if that's good enough to write home about, since it's
> functionally stripped down compared to rfc822 and mimetools and not the
> perfectly scientific comparison
Sounds very interesting. Could you send me the code? I would like to
use and improve it for my project.

Besides rfc888 & mimetools are only one side of the problem while
processing mails with Python. Try decoding base64/quoted-printable
MIME parts with Python and you will see that you have to wait a unacceptable
amount of time on computers with medium perfomance.... :-(
But oassing encoded strings to a C module for this tasks wouldn't be
the best sollution. There would be too much overhead. A complete
C-module for messages would be more efficient.

I looked at a couple of MIME libraries and found MIME++ (aka MIMEpp in 
KDE support package). It looks very complete and has a object-oriented 
interface. But I don't know how to SWIG C++-classes :-( Can anyone
give any hints?

Henning




More information about the Python-list mailing list