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.
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.
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.
I've posted a little VBA sample at http://www.outlookcode.com/codedetail.aspx?id=1714 to demonstrate how to use the MailItem.ConversationIndex to locate the original message to which a reply has been created.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.