[issue37764] email.Message.as_string infinite loop

Ashwin Ramaswami report at bugs.python.org
Mon Aug 19 14:12:10 EDT 2019


Ashwin Ramaswami <aramaswamis at gmail.com> added the comment:

Thanks, I've fixed the first case as you suggested.

I found an example of the 2nd case -- '=?utf-8?q?=somevalue?=' -- which causes the method to hang. I've added a fix, though I'm not sure if it treats the string properly -- it parses it as '=?utf-8?q?=somevalue?=' and doesn't raise any defects. Is that the behavior we would want?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37764>
_______________________________________


More information about the Python-bugs-list mailing list