A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Trap the MailItem.Reply Event



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 10th 08, 03:45 AM posted to microsoft.public.outlook.program_forms
Naji
external usenet poster
 
Posts: 8
Default Trap the MailItem.Reply Event

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.



  #2  
Old April 10th 08, 03:00 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Trap the MailItem.Reply Event

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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Naji" wrote in message
...
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.




 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MSG File - Trap Explorer Selection Change Event DG Outlook and VBA 8 January 11th 10 09:03 AM
Creating mailitem with reply/reply to all/forward buttons chrisl Outlook - Using Forms 3 June 21st 07 11:55 PM
MailItem Close Event Robert Morley Outlook and VBA 8 April 19th 07 09:03 PM
Trap reply event SuperSlueth Outlook - Using Forms 1 February 13th 06 09:09 PM
Trap Reply Event technoloG Add-ins for Outlook 4 January 18th 06 10:08 PM


All times are GMT +1. The time now is 12:29 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.