microsoftgraph / microsoftgraph/msgraph-sdk-dotnet
internetMessageHeaders is not returned for send emails
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 789
- Forks
- 264
- Avg merge
- 15h 17m
- Merged PRs (30d)
- 3
Description
Is your feature request related to a problem? Please describe the problem.
I am trying to get the internetMessageHeaders for every email in the mailbox. I noticed that for emails that are send - the API doesn't return this if you make https://graph.microsoft.com/v1.0/me/messages/messageId?$select=internetMessageHeaders. The only workaround that I've think of so far is to get the message as a stream https://graph.microsoft.com/v1.0/me/messages/messageId/$value and I parse it with MailKit MimeKit.MimeMessage.LoadAsync(messageStream)
Describe the solution you'd like.
I would like the prop internetMessageHeaders to work also for send emails but not only for received.
Additional context?
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Microsoft Graph request to /me/messages/{messageId}?$select=internetMessageHeaders for both received and sent messages, then review the issue comments for any scope or ownership clues. Done means sent messages return internetMessageHeaders through the SDK/API, or the limitation is documented if the behavior is outside this repository.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100