[ python-Bugs-895510 ] email library Parser can't parse some
messages
SourceForge.net
noreply at sourceforge.net
Thu Feb 12 02:42:30 EST 2004
Bugs item #895510, was opened at 2004-02-12 08:42
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=895510&group_id=5470
Category: Python Library
Group: Python 2.2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Jan Ondrej (ondrejj)
Assigned to: Nobody/Anonymous (nobody)
Summary: email library Parser can't parse some messages
Initial Comment:
The email library can't decode some emails with one bad
part. This part is ignored (not decoded) by other
software. I am developing an antivir software and I
need to decode these messages.
There is the code, which raises an error:
if line[0] in ' \t':
if not lastheader:
print "Errors.HeaderParseError"
raise Errors.HeaderParseError(
'Continuation line seen before
first header')
There is an example attached. It contains a space
before "Content-Type:" in first part. This part is
buggy, but next part can contain important data.
If it is not a bug but an RFC implementation, please
tell me, how I can decode these emails.
I think, this problem is in all versions of this
library (also in CVS), because this code is not changed
in it.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=895510&group_id=5470
More information about the Python-bugs-list
mailing list