Discussion:
How to tell if a message has been replied to?
(too old to reply)
m***@gmail.com
2005-06-23 21:23:02 UTC
Permalink
I'm working on a project to retrieve a bunch of message information
using CDO, put that info in a SQL database, and de-duplicate it.

The problem I'm having is that I can't find a good way to determine
whether or not someone has modified the message after receiving or
sending it. I need to be able to tell whether they replied or modified
it- at the moment, all the fields that appear to get updated on
modifying are also changed on replying (PR_LAST_MODIFICATION_DATE,
PR_MESSAGE_SIZE, PR_MESSAGE_FLAGS,etc...)

Since PR_SEARCH_KEY isn't quite unique enough for my purposes, I need
some way to distinguish messages that were simply replied to from the
ones that someone modified and saved in say, their inbox.

Does anyone have any idea how to do this?

Thanks,

Mark
Dmitry Streblechenko
2005-06-23 22:45:09 UTC
Permalink
Did you try PR_LAST_VERB_EXECUTED (0x10810003)? You will get
EXCHIVERB_REPLYTOSENDER, EXCHIVERB_REPLYTOALL, EXCHIVERB_FORWARD if the
message was replied to/forwarded.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
Post by m***@gmail.com
I'm working on a project to retrieve a bunch of message information
using CDO, put that info in a SQL database, and de-duplicate it.
The problem I'm having is that I can't find a good way to determine
whether or not someone has modified the message after receiving or
sending it. I need to be able to tell whether they replied or modified
it- at the moment, all the fields that appear to get updated on
modifying are also changed on replying (PR_LAST_MODIFICATION_DATE,
PR_MESSAGE_SIZE, PR_MESSAGE_FLAGS,etc...)
Since PR_SEARCH_KEY isn't quite unique enough for my purposes, I need
some way to distinguish messages that were simply replied to from the
ones that someone modified and saved in say, their inbox.
Does anyone have any idea how to do this?
Thanks,
Mark
Loading...