HighTechTalks DotNet Forums  

How can I identify a thread within the email body?

Visual Studio.net (Tools Office) microsoft.public.vsnet.vstools.office


Discuss How can I identify a thread within the email body? in the Visual Studio.net (Tools Office) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Ekin
 
Posts: n/a

Default How can I identify a thread within the email body? - 01-12-2009 , 04:16 AM






When a user replies to an email, I would like to programmatically append a
piece of text below his/her latest message rather than the bottom of the
entire email body.

Is there a way to do this both form plain text and HTML emails?

Ekin

Reply With Quote
  #2  
Old   
Ken Slovak - [MVP - Outlook]
 
Posts: n/a

Default Re: How can I identify a thread within the email body? - 01-12-2009 , 09:04 AM






Only by getting the original message's text and comparing that to what's in
the reply. You can use ConversationIndex and ConversationTopic to find the
mail that's being replied to if you don't already have a handle to it.

You can use Items.Restrict to find all items in a folder that have the same
ConversationTopic and then check each for ConversationIndex. Each new
message in a conversation will have a ConversationIndex value that's longer
than the previous ConversationIndex value. See
http://msdn.microsoft.com/en-us/library/ms528195(EXCHG.10).aspx for
information on working with conversations.

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


"Ekin" <Ekin (AT) discussions (DOT) microsoft.com> wrote

Quote:
When a user replies to an email, I would like to programmatically append a
piece of text below his/her latest message rather than the bottom of the
entire email body.

Is there a way to do this both form plain text and HTML emails?

Ekin


Reply With Quote
Reply




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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.