[New-bugs-announce] [issue44685] Email package issue with Outlook msg files

Heghine report at bugs.python.org
Tue Jul 20 12:02:15 EDT 2021


New submission from Heghine <heghine.ghazaryan at siemplify.co>:

The email package has an issue with extracting the attachments from the email if the email is sent with the Outlook application with .msg files.

When I'm sending an email from the Outlook app by attaching .msg files to the email, the recipient receives the email but instead of .msg files, the email contains .eml files. So Outlook auto transforms the attached .msg to .eml.
When I'm trying to read and extract attachments with the email package by using the Message class "get_payload" method, the extracted data for the mentioned attachment doesn't contain necessary information like "content-disposition" or "filename", so working with that attachment is impossible.

For all other .eml files everything works fine. The issue exists only in the case of transformed .eml files. However, that .eml looks like any other eml file in the received mail.

----------
components: email
files: msg file.msg
messages: 397885
nosy: barry, heghine, r.david.murray
priority: normal
severity: normal
status: open
title: Email package issue with Outlook msg files
versions: Python 3.7, Python 3.8, Python 3.9
Added file: https://bugs.python.org/file50167/msg file.msg

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


More information about the New-bugs-announce mailing list