You cannot. Those headers are added by the server(s), only after the message has been sent. The copy of the message stored within the Sent Items folder will not reflect them.
How to fetch InternetMessageHeaders for messages in SENT box
Venkatesh Nambiyar
5
Reputation points
How can I fetch the InternetMessageHeaders for sent mail messages in my SENT box using the Microsoft Graph API? I have tried using the following URL: https://graph.microsoft.com/v1.0/me/messages/{id}/?$select=internetMessageHeaders
and received the response shown in this image: Reponse in Graph Exploxer.png.
2 answers
Sort by: Most helpful
-
-
Fred Cox 0 Reputation points
2024-05-03T14:47:09.7333333+00:00 The answer appears to be that you can get the 'raw' content of the message - with
/$value
and you can parse the headers yourself