How to fetch InternetMessageHeaders for messages in SENT box

Anonymous
2024-02-06T09:30:05.65+00:00

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.

Outlook | Windows | Classic Outlook for Windows | For business
Microsoft Security | Microsoft Graph
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Fred Cox 5 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

    1 person found this answer helpful.
    0 comments No comments

  2. Vasil Michev 119.5K Reputation points MVP Volunteer Moderator
    2024-02-06T09:40:10.2033333+00:00

    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.