views:

411

answers:

2

When I receive an email, I'm manipulating the subject line so it is more readable and "conversations" generated by a certain auto-emailer actually contain all of the thread.

I'm able to change the subject in the email view pane, but the subject remains the same in the explorer pane. How can I force the subject to change in the Explorer Pane? Do I have to copy the email and delete the old one? If so, I know that the email date will change. How can I change the email date back to the original date prior to the move? I'm using Outlook 2007.

+2  A: 

Presumably you've already written the code which gets you a reference to a MailItem object.

You can set the MailItem's Subject property to what ever you like and then call it's Save() method. This should achieve what you desire regarding the mail's subject.

However, doing this also updates the mail's ReceivedTime property. This is a read only property so you can't set it back to the previous timestamp. Unfortunately, there may be no way to do so.

AdamRalph
I've set the MailItem's Subject property and called Save(), but it doesn't change the subject name in the mail browser/explorer pane ( the one that lists all the mail).
Ross Rogers
FYI, this turns out to be the "Conversation" of an email. Still trying to find out if I can change the "Conversation" of a `mail_item`. `ClearConversationIndex()` doesn't work for me.
Ross Rogers
+1  A: 
Otaku