0

I am working on a application which integrates with MS Exchange to recieve user requests. As part of this requirement I need to ensure that only the original email is processed by the system. If the user replies to the sent email or forwards it again to the application I need to ignore them as duplicates.

I checked the EWS API (EmailMessage) documentation and didnt see anything that will give me that information. After searching a bit I came across an MAPI property "PR_LAST_VERB_EXECUTED" that might have the information I am looking for but then didnt come across any sample code that explains how to use it or derive it from the EmailMessage interface.

The only other alternative I could see is leveraging the conversation id field to check if the new email recieved is part of an existing conversation. In which case consider it to be a duplicate.

If anyone has implemented something similar please let me know

JasonMArcher
  • 14,195
  • 22
  • 56
  • 52
Anand Nadar
  • 236
  • 1
  • 6
  • 14
  • I did have the same Problem and solved it successfully. See http://stackoverflow.com/questions/13646559/how-to-notice-if-a-mail-is-a-forwarded-mail – Jürgen Hoffmann Feb 13 '13 at 10:48
  • Nice; Thanks Jurgen. I was playing around with conversation id but didnt realize the index could be of use here. Is this something that can be completely relied upon in terms of the length of the field to be strictly 22 characters for the original message? – Anand Nadar Feb 13 '13 at 15:58
  • yes, if the index has a length of 22 ist always the original message. at least my code relies on it ;) – Jürgen Hoffmann Feb 14 '13 at 16:24

0 Answers0