[spambayes-dev] FW: [Spambayes] (no subject)

skip at pobox.com skip at pobox.com
Sat Aug 4 00:47:09 CEST 2007

    Mark> It appears that a particular mail is malformed, and SpamBayes
    Mark> isn't robust enough.
    Mark> Looking inside the traceback, the code arond like 1371 of
    Mark> tokenize.py is:
    Mark>         try:
    Mark>             subjcharsetlist = email.Header.decode_header(x)
    Mark>         except (binascii.Error, email.Errors.HeaderParseError):
    Mark>             subjcharsetlist = [(x, 'invalid')]

    Mark> It looks like that except clause should be changed to include
    Mark> ValueError at least - eg:
    Mark>         except (binascii.Error, email.Errors.HeaderParseError,
    Mark> ValueError):

    Mark> Could you please try that change and see if it goes away?  I've
    Mark> also CCd spambayes-dev in the hope that someone there will offer
    Mark> some opinion if this is indeed a fix that should be checked in...
I went ahead and checked it in. ;-)  


More information about the spambayes-dev mailing list