[ python-Bugs-846938 ] email.Parser.Parser doesn't check for valid
Content-Type
SourceForge.net
noreply at sourceforge.net
Fri Nov 21 17:27:44 EST 2003
Bugs item #846938, was opened at 2003-11-21 15:25
Message generated for change (Settings changed) made by jasonrm
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=846938&group_id=5470
Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jason R. Mastaler (jasonrm)
>Assigned to: Barry A. Warsaw (bwarsaw)
Summary: email.Parser.Parser doesn't check for valid Content-Type
Initial Comment:
See the attached traceback illustrating how to
reproduce the
problem. A sample triggering message is also attached.
The problem is that the Content-Type is 'multipour
alternative',
but the Content-Type field has a valid 'boundary='
parameter.
The parser doesn't check that Content-Type is valid; it
just creates
sub-Message objects for each part it finds that is
separated by the
boundary. Then, when Generator goes to check
Content-Type, it
discovers that the content-type *is* invalid and it
returns
'text/plain' instead! Generator tries to _handle_text
and instead
finds the list of sub-Message objects. BOOM!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=846938&group_id=5470
More information about the Python-bugs-list
mailing list