You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
msg = email.message_from_bytes(...)
for part in msg.walk():
content_type = part.get_content_type()
if not part.get_content_maintype() == 'multipart':
filename = part.get_filename(None)
attachment = part.get_payload(decode=True)
if the mime parts are more than one, then the memory increases at each iteration and will never be released.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: