I'm developing a VSTO add-in for Outlook, Now I get a bounce back email, which included message ID. How can I trace the original email from this message ID in VSTO program?
VSTO - Outlook how to trace email from Message ID
642 views Asked by user3259913 At
2
There are 2 answers
0
Dmitry Streblechenko
On
As Eugene mentioned, you need to search for the sent message based on the PR_INTERNET_MESSAGE_ID property. No reason to use Items.Restrict or even Find/FindNext - since you are expecting a single match (unless something is really wrong with your mailbox), a single call to Items.Find is all your need.
Also keep in mind that in the cached Exchange mode PR_INTERNET_MESSAGE_ID will not be set on the items in the Sent Items folder. To work round that, you'd need to open the Sent Items folder in the online mode (you can do that using Extended MAPI in C++/Delphi or Redemption (I am its author) in any language.
Related Questions in C#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in OUTLOOK
- Toggle "conversation view" in Outlook with VBA
- Error 553 5.7.2 [TSS09] When Sending Emails to Yahoo and Outlook
- Hide canceled meeting invites on outlook
- outlook vsto add-in can't find contact
- Using MAPI to open an Outlook folder, MAPIFolder.Items.Sort("Subject",True) does not sort
- office.js item.close() and inline replies in outlook
- How does outlook disable screenshot
- menu item in plugin for outlook using c# VSTO
- RSVP Section or button not showing in Outlook and Zoho in Laravel
- How to bulk upload events into Outlook Calendar via a csv file while preserving line breaks in the description?
- Creating a outlook calendar event leaves a shade of that event throughout the entire day till the end date
- I'm not getting notified on my email client i.e., outlook despite they're in firing state
- Alerts are not displaying in the Alertmanager UI and I'm not getting notified on my email client i.e., outlook despite they're in firing state
- Storing the state of a VSTO Outlook plugin in a draft message
- Rewriting CSS in MSO conditional comment doesn't work
Related Questions in VSTO
- menu item in plugin for outlook using c# VSTO
- Inline pictures: Add margin
- Storing the state of a VSTO Outlook plugin in a draft message
- Issues with WebView2 in WPF Usercontrol Embeded in Word VSTO CustomTaskPane
- How can I get the full content of a Word Document?
- VSTO Ms-Word addin -i need to show publisher name in Ms-Word addin section. I aready digtaly sign with digicert
- File Not Found Exception for System.Text.Json (VSTO Addin). Upgrade of RestSharp?
- .Net Excel Interop Multiple Columns Delete with range very slow
- Document.AcceptAllRevisions() in Word Interop did not work
- Word Add-In, C# VSTO, Ribbon XML, what's the signature for the built-in "undo" command's handler?
- Is this programming pattern the solution to Excel COM interop memory leaks?
- why VSTO Outlook Add-in and Office JS add-in conversationId is not same?
- No Such Interface supported while copying worksheets from source Workbook to destination Workbook - Excel VSTO Addin
- Is it possible to add docker support to VSTO Add-in?
- Call VSTO Excel Plugin from Macro Button VBA
Related Questions in EMAIL-BOUNCES
- AWS SES is treating vacation responder as bounce
- Identify original email from Complaint SES notification
- Bounce mail error Read Java
- New Bounce Processing Templates in Mailman
- How can the Return-Path header be different than the actual email bounce recipient?
- Header-variables in bounced emails: what points could have an effect if they are deleted or not?
- handling bounce email w/phpmailer
- Detecting bounced messages by Return-Path header
- How to catch bounced emails in PHP?
- AWS SES - Bounces Not Being Delivered To ReturnPath Address
- Is bounce email handling worth it?
- Catch email bounce
- Cleaning bounce mail
- "This is a permanent error." Is that for the email address or the message?
- Custom Header Information in Postfix Bounce Header
Related Questions in MESSAGEID
- Retrieve messageId when sending mails with graph api
- How to find out the user name by the message ID? DISCORD PY
- Can I mention a message with its ID
- Does google pub sub deliver messages to dead letter queues with the same message id?
- Can you tell Google's gmail servers to ignore a missing messageID?
- gMail rejects eMails missing MessageID header coming from my Samsung phone
- Amazon SES using Message Id
- The SignalR's messageId value
- Get the message content into a command [discord.py]
- How to get unique pulsar message id in different case
- Delete outgoing message sent by telegram bot (Telegram, python)
- Accessing Telegram Message by its id
- PHPMailer: is it possible to set a different message-id for bcc?
- VSTO - Outlook how to trace email from Message ID
- How to convert a message id from discord in the actually text that is written?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You can search for
PR_INTERNET_MESSAGE_IDproperty value. TheDASLname of the property ishttp://schemas.microsoft.com/mapi/proptag/0x1035001F.Use the
Find/FindNextorRestrictmethods of theItemsclass. TheRestrictmethod is an alternative to using theFindmethod orFindNextmethod to iterate over specific items within a collection. TheFindorFindNextmethods are faster than filtering if there are a small number of items. TheRestrictmethod is significantly faster if there is a large number of items in the collection, especially if only a few items in a large collection are expected to be found.But if you need to find items from multiple folders I'd recommend using the
AdvancedSearchmethod instead: