Oops - I meant to CC spambayes-dev, but got the address wrong... Mark
________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Hammond Sent: Wednesday, 4 July 2007 11:26 PM To: 'David and Heather Bridson'; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [Spambayes] (no subject) It appears that a particular mail is malformed, and SpamBayes isn't robust enough. Looking inside the traceback, the code arond like 1371 of tokenize.py is: try: subjcharsetlist = email.Header.decode_header(x) except (binascii.Error, email.Errors.HeaderParseError): subjcharsetlist = [(x, 'invalid')] It looks like that except clause should be changed to include ValueError at least - eg: except (binascii.Error, email.Errors.HeaderParseError, ValueError): Could you please try that change and see if it goes away? I've also CCd spambayes-dev in the hope that someone there will offer some opinion if this is indeed a fix that should be checked in... Cheers, Mark -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of David and Heather Bridson Sent: Wednesday, 4 July 2007 6:18 AM To: [EMAIL PROTECTED] Subject: [Spambayes] (no subject) Dear Spambayes I am using Windows XP Pro SP-2 My version of SpamBayes is: SpamBayes 1.0.4 The key error seems to be: Hope you can untangle this. Bye for now David Bridson Owls Barn Staithe Farm Langley Street Loddon Norfolk NR14 6AD Phone 01508 522 106 Mobile 07824 548 310 _______________________________________________ spambayes-dev mailing list spambayes-dev@python.org http://mail.python.org/mailman/listinfo/spambayes-dev