Hi,
I'm writing an add-in that would do some processing on the body of the received emails. Since emails are often replies to previous emails I need first to remove the content of previous emails.
And here lies the problem... If I use the MailItem.Body string I get the content that was processed by Outlook and doesn't contain any '>' characters that usually indicate the previous content. I can use regular expressions and look for content such as "On X, Y wrote" to find where the previous email begins but this doesn't always work nicely. It fails, for example, when you receive an email where the content was written between the lines of the previous email.
Therefore my question is: Is it possible in Outlook to somehow get the actual source of the email message. By source I mean the content which you see if you press in Thunderbird View->Message Source. This content contains tags like "Delivered-To:", "Return-Path:", ... and also the mail body in unprocessed version (with ">" chars).
Thank you in advance for any help, Gregor