I was using Python module email.Header to decode headers and encountered
problems with some of the headers. One example is given below:
Python 2.3.4 (#1, May 27 2004, 15:48:35)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
import email.Header
email.Header.de code_header(''' =?koi8-r?B?Qm9va3MuUnU gLSDOz9fZyiDTwc rULCDOz9fZxSDTy 8nEy8k?= =?koi8-r?B??=''')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/var/tmp/python2.3-2.3.4-root/usr/lib/python2.3/email/Header.py",
line 113, in decode_header
email.Errors.He aderParseError
While mailers decode Subject just fine... Is it a case of some
standard deviation?
Sincerely yours, Roman A.Suzi
--
- Petrozavodsk - Karelia - Russia - mailto:rn*@oneg o.ru -