Is it possible to retrieve the RFC 2822 (or any) headers from an email with the Outlook/Office 365 REST API?

后端 未结 2 404
囚心锁ツ
囚心锁ツ 2020-12-03 15:52

An application I am working on needs access to the headers of an email - specifically ones like return-path, in-reply-to, and references

2条回答
  •  醉梦人生
    2020-12-03 16:47

    To all the poor souls lost in the insanties of MS Graph api - the answer above doesn't seem to be correct anymore as it will return error "PropertyId is not a property name" - it seems the correct answer now is:

    GET https://graph.microsoft.com/beta/me/messages/{message-id}?
    $select=Subject,SingleValueExtendedProperties&
    $expand=SingleValueExtendedProperties($filter=id eq 'String 0x7D')
    

    This is how you get the message headers from the Outlook/Office 365 REST Graph api.

提交回复
热议问题