![]() |
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 --
I have a C# plugin for Outlook 2k3 that sets predefined message classifications in X-Headers using redemption. The issue is that those headers are not inherited by the new item that is created whenever a mail is forwarded or replied to. I need help with either getting the headers of the original message or any ideas on where to store the classification information so that it will be available in replies and forwards.. Thanks Sanjay |
Ads |
#2
|
|||
|
|||
![]()
A reply or forward is a brand new item. You would need to add the same
information in the X-header to the new item or to a user property or named property. You might need to use the conversation topic and conversation index properties to find the original or preceding item in a conversation to pick up that information from the earlier item and add it to the new item. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Sanjay" wrote in message oups.com... Hello -- I have a C# plugin for Outlook 2k3 that sets predefined message classifications in X-Headers using redemption. The issue is that those headers are not inherited by the new item that is created whenever a mail is forwarded or replied to. I need help with either getting the headers of the original message or any ideas on where to store the classification information so that it will be available in replies and forwards.. Thanks Sanjay |
#3
|
|||
|
|||
![]()
I would like to use ItemProperty or UserProperty instead.. but for some
reason they are not available in the response mailitem until the item is saved.. is there some other way to get access to the properties of the original message? |
#4
|
|||
|
|||
![]()
The way to get the original message is what I indicated.
You certainly can add something to the UserProperties collection of an item without saving it first, I do that all the time. Of course to preserve the property you would have to save or send it. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Sanjay" wrote in message oups.com... I would like to use ItemProperty or UserProperty instead.. but for some reason they are not available in the response mailitem until the item is saved.. is there some other way to get access to the properties of the original message? |
#5
|
|||
|
|||
![]()
Ken --
Thanks for your reply.. I tried to get to the PR_CONVERSATION_TOPIC / PR_CONVERSATION_INDEX property of the response mailitem in the mailitem_open event. Those properties are not available. Do you have some sample code I could use? Here is what I am trying to do. I have a UI element in the inspector whose value is set to the value of a custom property I set. So when a user opens a mail item, the property is read and value for the element is set. Now when the user replies or forwards this message, I have to set the value of the UI element in the new message. This value has to be same as the value in the original message. I try to do this in the MailItem_Open event. But those properties are not available in the MailItem_Open event for response. Sample code would help a lot.. Thanks Sanjay |
#6
|
|||
|
|||
![]()
If the properties aren't available then I can't help you. Using Outlook
object model code they would be Item.ConversationIndex and Item.ConversationTopic. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Sanjay" wrote in message oups.com... Ken -- Thanks for your reply.. I tried to get to the PR_CONVERSATION_TOPIC / PR_CONVERSATION_INDEX property of the response mailitem in the mailitem_open event. Those properties are not available. Do you have some sample code I could use? Here is what I am trying to do. I have a UI element in the inspector whose value is set to the value of a custom property I set. So when a user opens a mail item, the property is read and value for the element is set. Now when the user replies or forwards this message, I have to set the value of the UI element in the new message. This value has to be same as the value in the original message. I try to do this in the MailItem_Open event. But those properties are not available in the MailItem_Open event for response. Sample code would help a lot.. Thanks Sanjay |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Rule to Forward Incoming Mail Fails when item is itself a replied-to or forwarded e-mail | Steven Bookman | Outlook - General Queries | 3 | April 6th 06 10:41 PM |
View forwarded headers | Alex | Outlook - General Queries | 2 | March 24th 06 08:40 PM |
Notification for when sent emails are not replied to? | pt_lily | Outlook and VBA | 1 | March 13th 06 09:02 AM |
How do I know whether a mail is replied/forwarded ? | Bhanu | Outlook and VBA | 5 | February 20th 06 03:45 PM |
Undocumented Function? How to know for an olMailItem if it has been "replied" or "forwarded" | 9online | Outlook and VBA | 1 | February 15th 06 04:39 PM |