Expose the entire email MIME stream (whole mail ContentBytes) in Outlook Mail REST API
Sending REST request to Outlook Mail endpoint for messages brings back email message object with properties such as: Subject, From, To, Body but it doesn't expose the MIME stream for the whole email. Actually this is required to save the entire email maybe as eml file locally or somewhere.
hope this option will be available soon within the REST response
We have actually started this work. We will have an update in the next 3 months that will make it officially available on the beta endpoint. ^JT
Joey McAdams commented
Have there been any updates on this? Updated ETA or anything?
Yves Dhondt commented
It should go both ways: we should be able to retrieve the entire mime stream as well as put it. This is especially important for sending and retrieving signed and encrypted messages.
Raed Alahmad commented
Great to know you've started on this, it should be helpful. Thanks
anu katari commented
Sounds great !!
But will there be any size limitation with this feature ?
Seems that only works after creating draft message, once you have sent the email, it is not there anymore. This what I got after sending the email.
"message": "The specified object was not found in the store., The process failed to get the correct properties."
I dont know if it has been moved to any other folder but couldnt find it. Is anyone having the same issue?
It actually already works, not documented afaict
in the GET request
Lindsay Snider commented
You can sometimes get the raw headers with that link: https://stackoverflow.com/questions/38103388/is-it-possible-to-retrieve-the-rfc-2822-or-any-headers-from-an-email-with-the but it still does not work in the 'Sent Items' folder. It's hard to see who replied to who when half of the conversation does not have the headers.
Agreed! We need to be able to download the entire, raw MIME message.
Mathew Kleppin commented
Currently not working. The below comment didn't give me anything. I would love this to be implimented!
Eirik Brandtzæg commented
Try https://graph.microsoft.com/beta/me/messages/<message id>/$value
Is it working now?
Josh Rickard commented
I agree with this! This limit is 1MB and should be the entire MIME stream.
Corey Larson commented
This is something critical to me as well. Apparently its on the roadmap somewhere?
I would like to be able to access the raw message data. Mainly the RFC2822 Message-Id and plain text body.