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

Mark Hammond mark at enfoldsystems.com
Fri Aug 3 22:28:05 CEST 2007


Oops - I meant to CC spambayes-dev, but got the address wrong...

Mark

________________________________

From: spambayes-bounces+mhammond=keypoint.com.au at python.org
[mailto:spambayes-bounces+mhammond=keypoint.com.au at python.org] On Behalf
Of Mark Hammond
Sent: Wednesday, 4 July 2007 11:26 PM
To: 'David and Heather Bridson'; spambayes at python.org
Cc: spambayes-dev at spambayes.org
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 at python.org
[mailto:spambayes-bounces+mhammond=keypoint.com.au at python.org]On Behalf
Of David and Heather Bridson
	Sent: Wednesday, 4 July 2007 6:18 AM
	To: spambayes at python.org
	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

	 



More information about the spambayes-dev mailing list