Trap the MailItem.Reply Event

N

Naji

Hello Everyone,

Thank you in advance for any help or suggestions.

I am using VS 2008 and VSTO SE. I am in the process of developing an add-in
for Outlook 2007. I am trying to do the following, without much success:

When a user creates a new email, he or she has the option of adding a
"category" custom property to that email.

If I want to reply to an email that happens to have such custom property, I
would like to add the "category" property from the original(the item I am
replying to) email to my reply.

I created a global variable that captures the "category" property from read
or previewed mailItems, but the problem I am facing is that the value of this
global variable captures only the last viewed or read mailitem. I thought
about using a Hashtable, but I simply can't figure out how to implement it.

When I click on reply and trace the code, all MailItem properties are nul,
except for the subject and body.How does Outlook make the association between
an item and its reply object?

Any help, suggestion or code snippet would greatly appreciated.

Thank you for your time and effort.
 
K

Ken Slovak - [MVP - Outlook]

Outlook tracks messages in threads using the ConversationTopic and
ConversationIndex properties. ConversationTopic is constant and is the
original Subject. ConversationIndex contains a series of date/time stamp
structs and a new date/time stamp struct is added for each new item in the
thread.
 

Ask a Question

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.

Ask a Question

Top