Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading content of .msg and .eml type attachments is not possible #1025

Closed
kamalvk18 opened this issue Nov 18, 2023 · 3 comments
Closed

Reading content of .msg and .eml type attachments is not possible #1025

kamalvk18 opened this issue Nov 18, 2023 · 3 comments

Comments

@kamalvk18
Copy link

Currently what I can see is we have a method defined for saving email type attachments by using
message.attachments.save_as_eml(attachment)
But there is no method defined for just reading the content. In my case I want to read the content of the .eml type attachment and store it as bytes for further processing.

Please let me know if there is already a possible way to read those attachments.

kamalvk18 pushed a commit to kamalvk18/python-o365 that referenced this issue Nov 19, 2023
@kamalvk18
Copy link
Author

I've raised a PR to resolve this. Can you please review and add comments if you find anything to be modified. This is really important for our project.

alejcas added a commit that referenced this issue Nov 28, 2023
…hments

To solve issue #1025 (Being able to read mime content of .eml or .msg type attachments)
@alejcas
Copy link
Member

alejcas commented Nov 28, 2023

Merged ;)

@kamalvk18
Copy link
Author

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants