![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |