HeaderParseError
Thomas Guettler
hv at tbz-pariv.de
Mon Jul 4 04:31:35 EDT 2011
Hi,
I get a HeaderParseError during decode_header(), but Thunderbird can
display the name.
>>> from email.header import decode_header
>>> decode_header('=?iso-8859-1?B?QW5tZWxkdW5nIE5ldHphbnNjaGx1c3MgU_xkcmluZzNwLmpwZw==?=')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.6/email/header.py", line 101, in decode_header
raise HeaderParseError
email.errors.HeaderParseError
How can I parse this in Python?
Thomas
Same question on Stackoverflow:
http://stackoverflow.com/questions/6568596/headerparseerror-in-python
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
More information about the Python-list
mailing list