When querying for Office.context.mailbox.item.internetMessageId in Outlook for Mac OfficeJS is returning 2415681bce7c00293a83fce817e928a4 when the exact value of the Message-ID header is <2415681bce7c00293a83fce817e928a4>. However the internetMessageId key in MS Graph for the message is <2415681bce7c00293a83fce817e928a4> and in OWA Office.context.mailbox.item.internetMessageId returns <2415681bce7c00293a83fce817e928a4>.
When asking OfficeJS for Office.context.mailbox.item.internetMessageId I would expect OfficeJS to return the exact Message-ID header value and the value would be consistent between all Outlook environments.
Example header: Message-ID: <2415681bce7c00293a83fce817e928a4>
Currently in OWA if you ask OfficeJS Office.context.mailbox.item.internetMessageId the library will return <2415681bce7c00293a83fce817e928a4>.
However in Outlook for Mac if you ask OfficeJS Office.context.mailbox.item.internetMessageId it will return 2415681bce7c00293a83fce817e928a4.
Verified in MS Graph Explorer the value of the internetMessageId key for example message:
{
...
"internetMessageId": "<2415681bce7c00293a83fce817e928a4>",
...
}
Behavior is consistent in Outlook for Mac with multiple different messages and between two separate O365 accounts.
Message-ID: <2415681bce7c00293a83fce817e928a4> header.internetMessageId key in MS Graph Explorer has value <2415681bce7c00293a83fce817e928a4>Office.context.mailbox.item.internetMessageId equals <2415681bce7c00293a83fce817e928a4>Office.context.mailbox.item.internetMessageId equals 2415681bce7c00293a83fce817e928a4
Since the Message-ID is a header field it can be any string value. You cannot assume adding carrots when none are found. Office.context.mailbox.item.internetMessageId should return the exact value of the email header.
@macOutlookExtensibility FYI, assigning to you for investigation.
Internal work item created by @macOutlookExtensibility: # 1242050 (o365exchange.visualstudio.com).
Thanks for reporting this issue regarding inconsistent behaviour for Internet Message ID. It has been put on our backlog. We unfortunately have no timelines to share at this point
@kbrandl Any updates on this?
We are also facing the same issue with internetMessageId on Mac Desktop Clients. We currently work around it by adding the opening and closing chevron wherever they are missing due to the lack of an alternative.
We are facing another (maybe related) issue where we are unable to fetch a message resource using a non-outlook internet message ID via Outlook REST APIs. This is universal across all clients and platforms.
For example, a mail that has been composed on Gmail and sent to some outlook user has an internet messageId like:
When we try to look-up the message for this ID, we get an empty response. We have raised a question for the same on Stack Overflow and are awaiting a response.
@chrsblck I'm no longer working at Microsoft, so unfortunately can't provide an update on this. @macOutlookExtensibility can you please provide an update?
We are actively working on the fix for Office.context.mailbox.item.internetMessageId format. We will update this thread once the fix is deployed.
Just facing the same issue when internetMessageId is different on Windows/OWA and Mac/iOS. We did hardcode on our side but we are awaiting a fix from OfficeJs side.
Thanks in advance.