Search code examples
outlookoffice-interop

Is there a way to find an email message from Outlook inbox via InternetMessageId via C#?


I have an InternetMessageID for an email item. I'd like to open a Reply email dialog to an email with this InternetMessageID. How can I find the email from Outlook API by InternetMessageID?


Solution

  • Internet message id as in "Message-ID" MIME header? Use Items.Find/FindNext or Items.Restrict to search for the PR_INTERNET_MESSAGE_ID (DASL name http://schemas.microsoft.com/mapi/proptag/0x1035001F) property.