EWS managed api : Is there a way to identify if an email or attachment is encrypted?

孤人 提交于 2019-12-11 08:15:52

问题


Does EWS managed api expose any property to identify whether an item( email/attachment) is encrypted?


回答1:


 var isEmailOpaqueSignedOrEncrypted = false;

if (email.ItemClass == "IPM.Note.SMIME")
{
    var attList = email.Attachments.ToList();
    if (attList.Count == 1)
    {
        isEmailOpaqueSignedOrEncrypted = true;
    }
};


来源:https://stackoverflow.com/questions/26486144/ews-managed-api-is-there-a-way-to-identify-if-an-email-or-attachment-is-encryp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!