[issue11584] email.decode_header fails if msg.__getitem__ returns Header object
Steffen Daode Nurpmeso
report at bugs.python.org
Fri Mar 25 16:25:04 CET 2011
Steffen Daode Nurpmeso <sdaoden at googlemail.com> added the comment:
On Fri, Mar 25, 2011 at 03:04:29PM +0000, R. David Murray wrote:
> OK, here is the patch.
Works fine at a first glance and for me - i see you didn't stuck :/.
Say, though not belonging here, can you think of problems incurred
in message.py:_sanitize_headers() due to
if _has_surrogates(value):
instead of:
if _has_surrogates_or_8bit(value):
I stumbled over that place somewhen but fixing it was no real
help.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11584>
_______________________________________
More information about the Python-bugs-list
mailing list