Comment 14 for bug 558039

Revision history for this message
bwarsaw (bwarsaw) wrote :

Logged In: YES
user_id=12800

I'm accepting and applying this patch -- with two
differences. One the line that says "return
oneline.encode()" I want to pass the argument "replace" so
that there's more chance that much of the header decoding
can actually happen. Without this, iso-8859-1 encoded
Subject: headers posted to an English list leave the RFC
2047 encodings in the header, which looks ugly.

The second change is to replace the bare except (bad! :) in
oneline() with a qualified except. I believe only
UnicodeError and LookupError can occur here, although with
the first change above, maybe not even UnicodeError.

Now I want to see if this fixes the problem I've been having
with the spambayes list. Thanks! :)