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?
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
information on working with conversations.
[MVP - Outlook]
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
"Ekin" <Ekin (AT) discussions (DOT) microsoft.com> wrote
|Thread Tools||Search this Thread|