Is there a way to search by message-id in Outlook when it's connected to a generic IMAP server? Alternatively, is there a way to search for the message-id in the downloaded .pst file? I've done quite a bit of searching on this and I haven't found a way to do this with just Outlook and not Exchange.
Outlook – Searching by message-id in Outlook
microsoft-outlook
Best Answer
You have three options:
Search in the selected folder only. Customize current folder view or create a new one, click "Filter" and go to "SQL" tab in its settings. Set the "Edit these criteria directly" check and type the following:
this will restrict message list to messages that have the "message-id-to-search" Message-ID.
Advanced search. You'll need to create a VBA macro for that. Good news it that it's only two functions long. In Outlook VBA editor (ALT+F11), open Project1 -> Microsoft Outlook Objects -> ThisOutlookSession and create at least two Subs. Something like these ones:
Use Outlook rules. I mean "with specific words in the message header" rules. Disable them and run manually when needed to copy found messages or tag them with a flag and/or category. Do not forget to edit message-id to search for before each run!