[Spambayes] RE: Further Improvement 2

Barry A. Warsaw barry@python.org
Sun, 22 Sep 2002 10:21:47 -0400


>>>>> "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.

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.

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.

http://sourceforge.net/project/showfiles.php?group_id=25568&release_id=110035

-Barry