[Spambayes] RE: Further Improvement 2

John Draper crunch@shopip.com
Sun, 22 Sep 2002 11:02:16 -0700


>>>>>> "GvR" == Guido van Rossum <guido@python.org> writes:
>
>    GvR> Done now.  The only thing that required being awake was
>    GvR> figuring out what to use instead of get_content_[main]type(),
>    GvR> which are new in the 2.3 email package.
>
>Note that Python 2.2.1's email package is different than Python 2.3's
>in many ways, some of them perhaps significant to spambayes.  For
>example, 2.3's parser has a lax mode so that malformed messages won't
>just crap out with an exception.

So,  what does it take to use the new email package with the older 2.2.1.  Is there a HUGE dependancy involved?
>
>get_content_type() and friends is another useful change.  According to
>the RFCs, all messages/parts have a content type, which may be an
>implicit default.  Python 2.2's email package didn't support this by
>2.3's does.

How hard would it be to add just the new email module (and other modules) to the older 2.2.1?
>
>You might want to grab email 2.3.1 from the mimelib project on
>SourceForge.  It's identical to what's in Python 2.3's cvs right now.

JOhn