[Spambayes] UnicodeEncodeError raised for bogus Content-Type header

Tony Meyer tameyer at ihug.co.nz
Mon Apr 4 01:46:16 CEST 2005


> Still evaluating and learning about SpamBayes before 
> attempting to put it into production use. I ran into a 
> problem where a message (actual message from my March mail 
> spool) causes a UnicodeEncodeError to be raised due to a 
> bogus Content-Type header.
[...]
> Advice or workarounds?

I've fixed this in CVS, thanks.  The fix is pretty straightforward (just
catch the exception in tokenizer.py), so you could apply it to your local
copy if you like.

=Tony.Meyer

-- 
Please always include the list (spambayes at python.org) in your replies
(reply-all), and please don't send me personal mail about SpamBayes.
http://www.massey.ac.nz/~tameyer/writing/reply_all.html explains this.



More information about the Spambayes mailing list