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 » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Help with X-Headers and forwarded/replied emails.



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 18th 06, 04:10 PM posted to microsoft.public.outlook.program_addins
Sanjay
external usenet poster
 
Posts: 21
Default Help with X-Headers and forwarded/replied emails.

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  
Old May 18th 06, 05:31 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Help with X-Headers and forwarded/replied emails.

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  
Old May 19th 06, 01:17 AM posted to microsoft.public.outlook.program_addins
Sanjay
external usenet poster
 
Posts: 21
Default Help with X-Headers and forwarded/replied emails.

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  
Old May 19th 06, 03:06 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Help with X-Headers and forwarded/replied emails.

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  
Old May 19th 06, 05:24 PM posted to microsoft.public.outlook.program_addins
Sanjay
external usenet poster
 
Posts: 21
Default Help with X-Headers and forwarded/replied emails.

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  
Old May 19th 06, 07:35 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Help with X-Headers and forwarded/replied emails.

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
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
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


All times are GMT +1. The time now is 09:42 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.