Solved

How do I filter EmailMessage from Exchange 2007 EWS

Posted on 2010-09-13
3
577 Views
Last Modified: 2012-08-14
Hello,
I'm trying to get emails though the EWS interface from a Exchange 2007 server. This is working just fine.
But one job is to get the Body text from a email and place that text in another Database. This is also fine, but my problem is that if I (Person A) send a email to person B, and that person B is "replying" to Person A message and include the original message .
Then when I retrieve the message from the Exchange, I get the full message, that’s  of cause normal.
But I want to filter the initiate message from Person A away from the EmailMessage.Body object.  
So that I only get the response from person B.
Is that possible?

Thansk in advance
Torben
0
Comment
Question by:torbenph
  • 2
3 Comments
 
LVL 31

Accepted Solution

by:
LeeDerbyshire earned 500 total points
ID: 33662180
You might try getting the item's InReplyTo property.  I've not tried it myself, but I think this will give you the ItemId of the original message, and you can get the body of that.

Or, you will will just have to do it manually, by lookinf for some text that you are sure will always appear at the beginning of the original message in the reply, such as "----- Original Message -----".  If you find this text, then you could discard everything that follows it.
0
 

Author Comment

by:torbenph
ID: 33776221
Hi,
Thanks for your answer.
I was hoping for at tag inside the email, but then I can place one there myself, as you proposed.
Again thanks for the help.
0
 

Author Closing Comment

by:torbenph
ID: 33776226
It is not possible to get the Original message.. You have to supply it with at tag yourself
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
In this video we show how to create a User Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Mailb…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now