OUTLOOK VSTO ADDIN C#
Код: Выделить всё
// Decrypt the mail item
const string PR_SECURITY_FLAGS = "http://schemas.microsoft.com/mapi/proptag/0x6E010003";
Outlook.PropertyAccessor propertyAccessor = mailItem.PropertyAccessor;
propertyAccessor.SetProperty(PR_SECURITY_FLAGS, 0x00000000); // Decrypt the mail item
mailItem.Save();
// Save the decrypted mail item
mailItem.SaveAs(filePathWithName);
// Re-encrypt the mail item
propertyAccessor.SetProperty(PR_SECURITY_FLAGS, 0x00000001); // Encrypt the mail item
mailItem.Save();
Последний момент: повторное шифрование не работает.>
Подробнее здесь: https://stackoverflow.com/questions/791 ... y-accessor
Мобильная версия