Identify eMail as new, reply, forwarded

Add-in Express™ Support Service
That's what is more important than anything else

Identify eMail as new, reply, forwarded
 
klausir




Posts: 3
Joined: 2014-04-10
Actually I'm writing a new Outlook-AddIn

Here I use the adxOutlookEvents.ItemSend Event.
While this event, i need to identify, if this email is a new email, replied or forwarded.

Is there any property at the mailitem, to determine this property ?

Thanks for your help


many greetings
Klaus
Posted 23 Feb, 2015 05:41:27 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Hello Klaus,

There's no such property.

If you intercept the Reply, ReplyAll, and Forward commands, you'll be able to a)cancel them and b) to invoke the MailItem.Reply, ReplyAll, or Forward methods; the point is these methods return the item being opened. You can mark the new item with a custom property:

string myProp = "http://schemas.microsoft.com/mapi/string/" + "{FFF40745-D92F-4C11-9E14-92701F001EB3}/MyProperty";
string myString = "my string";
Outlook.PropertyAccessor oPA = oMail.PropertyAccessor;
oPA.SetProperty(myProp, myString);
oMail.Save();


You'll need to check for this property in the ItemSend event.


Andrei Smolin
Add-in Express Team Leader
Posted 23 Feb, 2015 08:27:38 Top