How to determine where Mailitem opens from Outlook 2007 using VSTO 2005 SE

I have an Outlook 2007 add-in in VSTO 2005 SE that allows users to save emails to our document management system. In our system, users can open emails that they have previously saved. However, in doing so, I need to try to prevent them from being saved again.

I am trying to figure out how to determine if Mailitem is open from an Outlook email client or from an external source.

I know that usually the EntryId property of Mailitem is empty or empty string when the Mailitem was not previously saved in Outlook, however it looks like when Mailitem is opened from our system the EntryID is not null.

+2


a source to share


1 answer


Adam, Usually most DM systems set mapi properties or user properties in mailings as they are saved ... DOCID etc. From the DM system. I would ask a spy and look at the DM emails to try and find this property. Then you should be able to test this in your VSTO add. Otherwise, maybe you can explain how you open email from your DM system from external Outlook via the DM plugin? or is it a completely external application? What is a DM System? Marcus



+2


a source







All Articles