How to determine where a Mailitem is being opened from in Outlook 2007 using VSTO 2005 SE

Posted by Adam on Stack Overflow See other posts from Stack Overflow or by Adam
Published on 2010-05-14T19:54:44Z Indexed on 2010/05/20 22:50 UTC
Read the original article Hit count: 249

Filed under:
|
|

I have an Outlook 2007 Add-in in VSTO 2005 SE that allows users to save e-mails into our document management system. From within our system users are able to open e-mails they have previously saved. However, when doing so I need to try and prevent them from saving them again.

I am trying to figure out how to determine if the Mailitem being opened is coming from the Outlook e-mail client or from an external source.

I know that normally the EntryId Property of the Mailitem is null or empty string when a Mailitem has not been previously saved in Outlook, however, it seems like when a Mailitem is being opened from within our system the EntryID is not null.

© Stack Overflow or respective owner

Related posts about outlook-addin

Related posts about outlook-2007