[issue36180] mboxMessage.get_payload throws TypeError on malformed content type

2019-04-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: A simplified reproducer as below. The tuple is returned from here https://github.com/python/cpython/blob/830b43d03cc47a27a22a50d777f23c8e60820867/Lib/email/message.py#L93 and perhaps is an untested code path? The charset gets a tuple value of

[issue36180] mboxMessage.get_payload throws TypeError on malformed content type

2019-03-04 Thread SilentGhost
Change by SilentGhost : -- components: +email nosy: +barry, r.david.murray stage: -> test needed type: -> behavior versions: +Python 3.7, Python 3.8 ___ Python tracker ___

[issue36180] mboxMessage.get_payload throws TypeError on malformed content type

2019-03-04 Thread Mattia Rizzolo
Change by Mattia Rizzolo : -- nosy: +mapreri ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36180] mboxMessage.get_payload throws TypeError on malformed content type

2019-03-04 Thread Enrico Zini
New submission from Enrico Zini : This simple code: ``` import mailbox mbox = mailbox.mbox("broken.mbox") for msg in mbox: msg.get_payload() ``` Fails rather unexpectedly: ``` $ python3 broken.py Traceback (most recent call last): File "broken.py", line 5, in msg.get_payload()