This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Email module's feed parser
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: barry Nosy List: barry, mdcowles
Priority: normal Keywords:

Created on 2004-09-28 19:59 by mdcowles, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
unparseable mdcowles, 2004-09-28 19:59 Spam that produces the internally-inconsistent message
Messages (2)
msg22560 - (view) Author: Matthew Cowles (mdcowles) Date: 2004-09-28 19:59
Barry asked me to open this so as to attach the message.

If the feed parser parsers a message that has a content-type 
of multipart/<something> but which contains only a single 
part, the resulting Message object is internally 
inconsistent: get_main_type() returns "multipart" but 
is_multipart() returns False.

I don't think that this is actually a bug because figuring out 
the right content-type to assign would require groveling 
through the payload with a bunch of messy heuristics. It 
seems to me that the standard library isn't the place for 
messy heuristics.
msg22561 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2004-09-28 21:22
Logged In: YES 
user_id=12800

Integrated into test suite (soon to be checked in).
History
Date User Action Args
2022-04-11 14:56:07adminsetgithub: 40961
2004-09-28 19:59:22mdcowlescreate