While trying to handle couple attachments of types ItemAttachment and FileAttachment from an inbound email, I notice that the ItemAttachment (representing an email attachment "HELLO WORLD.eml") strips the extension .eml from the name. So I lose that info downstream in my flow.
The other types of attachments of type FileAttachment are all fine and keep their extensions. Not sure whether I am missing something or is a defect in the way the ItemAttachment is initialized. Thoughts?
Note 1: These attachments are right off the bat like: attachments = message_item.attachments
Note 2: exchangelib==3.2.0
** ATTACHMENT 1
NAME: HELLO WORLD, <== Supposed to have .eml extension
TYPE: <class 'exchangelib.attachments.ItemAttachment'>
content_type='message/rfc822',
content_id='742A502EB7681B4F8D08B03020716918@namprd10.prod.outlook.com',
size=31367,
last_modified_time=EWSDateTime(2020, 7, 20, 22, 25, 2, tzinfo=<UTC>),
is_inline=False
** ATTACHMENT 2
NAME: Daily Sync-up call.ics
TYPE: <class 'exchangelib.attachments.FileAttachment'>:
content_type='text/calendar',
content_id='AF02FF7A060C5F4BA45628DE091DF5CD@namprd10.prod.outlook.com',
size=76875,
last_modified_time=EWSDateTime(2020, 7, 20, 22, 25, 2, tzinfo=<UTC>),
is_inline=False,
is_contact_photo=False)
(some content redacted)