OSM: "You have changed this message. If you save the changes, the message will no longer be digitally signed" not disappearing

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

OSM: "You have changed this message. If you save the changes, the message will no longer be digitally signed" not disappearing
 
Gerwald Tschinkel




Posts: 3
Joined: 2015-06-17
Hi,

We are trying to save a copy of an encrypted and signed mail.

Therefore we have to remove the encryption of the outlook mail:

var propertyEncryptedAndSignedState = mailItem.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x6E010003");
mailItem.PropertyAccessor.SetProperty("http://schemas.microsoft.com/mapi/proptag/0x6E010003", 0);

Then, we temporarily save the mailitem:

mailItem.SaveAs(tmpFile, SaveAsType.SaveAsMsg);

To be sure, that the original message doesnt get changed, we restore the property:

mailItem.PropertyAccessor.SetProperty("http://schemas.microsoft.com/mapi/proptag/0x6E010003", propertyEncryptedAndSignedState);


After execution of SaveAs(), the following warning shows up:

You have changed this message. If you save the changes, the message will no longer be digitally signed. Do you want to save your changes?


We tried to suppress this warning with the following command:

securityManager.DisableOOMWarnings = true; 

Unfortunately this warining still shows up.
We are using Outlook Security Manger v802-b3254.

Thx
Posted 04 Jan, 2017 12:51:54 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Gerwald,

Sorry but Security Manager is not purposed for suppressing this warning. It can disable the "A program is trying to access e-mail addresses you have stored in Outlook" and "A program is trying to automatically send e-mail on your behalf" dialogs only.
Posted 05 Jan, 2017 05:22:34 Top