Relative Content

Tag Archive for pythonemailpython-cryptography

Recreating multipart/signed E-Mails with Python

I’m using the Microsoft Graph API to retrieve all my emails with attachments and then recreate them using the Python email module. Everything worked fine until I received a signed email. When I try to download a signed email, I’m getting a file with a .p7m extension that contains the signature and attachments. Unfortunately, I have not found a suitable way to process this file in Python and display the email as an original.