Digitally signed e-mails

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

Digitally signed e-mails
Exception when getting the e-mail 
Bargholz Thomas




Posts: 242
Joined: 2006-12-18
Hi,

I have an add-in that monitors folders and does various work with specific e-mails.
The add-in is developed using add-in-express, and I use folder events to monitor and then handle the new e-mails on ProcessItemAdd, which all works fine.

Now a customer has started to receive digitally signed e-mails, which requires them to provide password/sign-in in order to read the e-mails. The customer would like to pass these e-mails through our handling as well.
This does not work, as Outlook object model throws an exception on getting the e-mail when we receive the event
(on Microsoft.Office.Interop.Outlook._MailItem.get_EntryID()).

I know this is no related to add-in-express product but is due to Outlook object model, but I was wondering if you had worked with signed e-mails before, and had any good pointers on how to handle the situation.

So far the best I can see is to catch the specific exception, log that this is a signed e-mail, and move it somewhere else, so the users can retrieve it for manual processing.

Best regards
Thomas
Posted 08 Oct, 2018 08:14:46 Top
Andrei Smolin


Add-in Express team


Posts: 16662
Joined: 2006-05-11
Hello Thomas,

Please check How to read digitally signed/encrypted emails.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 09 Oct, 2018 06:28:07 Top