[issue40359] email.parse part.get_filename() fails to unwrap long attachment file names (legacy API)
Matthew Davis
report at bugs.python.org
Tue Apr 28 00:26:56 EDT 2020
Matthew Davis <ubuntu.one at mdavis.xyz> added the comment:
Ah, yes that workaround works. Thanks!
So what's the exact status of this policy? It's called the default policy, but it's not used by default?
If I download the latest version of python, will this be parsed correctly without explicitly setting the policy?
i.e. Is this still something that should be changed in the code?
(Yes, I already use message_from_bytes in my real application. I just used message_from_string in the MWE, because I could only attach one file in this web page, so I embedded the email body as a string in the script.)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40359>
_______________________________________
More information about the Python-bugs-list
mailing list