I have implemented a custom form region on the read email inspector for Outlook 2010, there is no code behind the region at this point other than the predefined events.
Part of the requirement is that the MailItem.SaveAs() method will be used to store the email in a document management system folder structure, I am replicating this method using the Save As option on the menu in the Inspector. When saving the mail item to disk I can reopen it once but any attempt to open the saved email after that, without restarting Outlook, gives me a permissions error. If I try to delete the saved email Windows informs me that it is open in Outlook and cannot be deleted.
This leads me to believe that the region is in some way holding a reference to the mail item when opened through Windows Explorer but can't for the life of me figure out how.
Has anyone come across this behaviour?, I would be very grateful for some advice on how to get around this issue.
Many thanks in advance