Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / October 2007

Tip: Looking for answers? Try searching our database.

identify reply programmatically for mail item

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BiangL - 17 Oct 2007 17:55 GMT
How can I identify if a mail item is a response to the other items by code?
Dmitry Streblechenko - 17 Oct 2007 21:22 GMT
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

> How can I identify if a mail item is a response to the other items by
> code?
BiangL - 17 Oct 2007 22:00 GMT
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

> Read the PR_LAST_VERB_EXECUTED MAPI property (it will be EXCHIVERB_REPLY or
> EXCHIVERB_REPLYTOALL for the replied messages) using PropertyAccessor in
[quoted text clipped - 8 lines]
> > How can I identify if a mail item is a response to the other items by
> > code?
Dmitry Streblechenko - 18 Oct 2007 00:44 GMT
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

>I try to figure out the response time for messages.  How do I know which
>mail
[quoted text clipped - 26 lines]
>> > How can I identify if a mail item is a response to the other items by
>> > code?
Sue Mosher [MVP-Outlook] - 28 Oct 2007 01:34 GMT
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.

Signature

Sue Mosher, Outlook MVP
  Author of Microsoft Outlook 2007 Programming:
    Jumpstart for Power Users and Administrators
   http://www.outlookcode.com/article.aspx?id=54

> Firstly, you can read the PR_LAST_VERB_EXECUTION_TIME (look at messages with
> MFCMAPI or OutlookSpy to see what is available).
[quoted text clipped - 38 lines]
>>> > How can I identify if a mail item is a response to the other items by
>>> > code?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.