Reputation: 81
I want to know how to get raw message from microsoft graph, as
GET https://graph.microsoft.com/v1.0/me/messages/{id}
return json object, and I need rfc822 of mails.
Upvotes: 3
Views: 2683
Reputation: 349
This appears to now be available. I haven't tested it for myself yet though...
Today, we’re excited to announce general availability of the following Microsoft Graph APIs:
Retrieve contents of an email message in MIME format Download file and item attachments in their raw format Translate identifiers of Outlook-related resources between formats You can now use these APIs in Graph v1.0 to implement production apps that require access to the raw contents of an email message or an attachment. You can download file attachments in binary format or item attachments in MIME format. Also, you can translate the format of identifiers of multiple resources by specifying the source and target ID types.
These APIs had been among our top user asks and we’re happy to roll these out on v1.0 endpoint worldwide. You can access these APIs on the v1.0 endpoint by using syntax like the following:
GET https://graph.microsoft.com/v1.0/me/messages/{message-id}/$value
Upvotes: 0
Reputation: 336
Yes, please refer to Get MIME content of a message for a description and examples of the two ways one can get a message in raw (MIME) format.
In general, keeping an eye on the Microsoft Graph blog site, the what's new topic, or the changelog topic (if it's API or permissions updates) would help you discover additions and updates you were looking for. In particular, the ability to get the MIME format of a message or message type attachment was introduced in April 2019 in the beta version, and promoted to v1.0 in September a few months later.
Upvotes: 1