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. ;-) Skip _______________________________________________ spambayes-dev mailing list spambayes-dev@python.org http://mail.python.org/mailman/listinfo/spambayes-dev