identify reply programmatically for mail item

  • Thread starter Thread starter Guest
  • Start date Start date
Read the PR_LAST_VERB_EXECUTED MAPI property (it will be EXCHIVERB_REPLY or
EXCHIVERB_REPLYTOALL for the replied messages) using PropertyAccessor in
Outlook 2007 or MAPI (C++/Ddelphi) / CDO 1.21 / Redemption in the older
versions of Outlook.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
I try to figure out the response time for messages. How do I know which mail
item the current mail item is replied? I am trying to save message meta data
into the database.

To make it more complex, can I access these properties of a mail item after
the same item be forwarded / BCC to a service mailbox? I need to track all
inbound/outbound messages for certain mailboxes. One option is to forward or
BCC all messages to a service mailbox and run a program to process those
messages to save meta data to a database.

Bin
 
Firstly, you can read the PR_LAST_VERB_EXECUTION_TIME (look at messages with
MFCMAPI or OutlookSpy to see what is available).
Secondly, when you reply to /forward a message, Outlook takes the value of
PR_CONVERSATION_INDEX from the parent message and adds 5 bytes to it. You
can use that to figure out the relationships betweeen the messages in a
folder and the replies/forwards in the Sent Items folder.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top