FW: [Spambayes] (no subject)
"Mark Hammond" <mark-/awGbKECNgO/3pe1ocb+swC/[email protected]> Fri, 3 Aug 2007 15:28:05 -0500
| Newsgroups | gmane.mail.spam.spambayes.devel |
|---|---|
| Message-ID | <[email protected]> |
Oops - I meant to CC spambayes-dev, but got the address wrong... Mark ________________________________ From: spambayes-bounces+mhammond=keypoint.com.au-+ZN9ApsXKcEdnm+yROfE0A@public.gmane.org [mailto:spambayes-bounces+mhammond=keypoint.com.au-+ZN9ApsXKcEdnm+yROfE0A@public.gmane.org] 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: spambayes-bounces+mhammond=keypoint.com.au-+ZN9ApsXKcEdnm+yROfE0A@public.gmane.org [mailto:spambayes-bounces+mhammond=keypoint.com.au-+ZN9ApsXKcEdnm+yROfE0A@public.gmane.org]On 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