EWS Digitally signed emails have empty body after upgrade from Exchange 2007 SP1 to Exchange 2013

回眸只為那壹抹淺笑 提交于 2019-12-11 07:54:58

问题


we have a problem with upgrade from Exchange 2007 SP1 to Exchange 2013. We are using ews to get emails from specific folder. Code looks like this:

private List<Item> GetAllItems(string folderId)
    {
        Folder inbox = Folder.Bind(m_Exchange, folderId);

        List<Item> m_ListOfItems = new List<Item>();
        ItemView itemView = new ItemView(int.MaxValue);

        FindItemsResults<Item> items = inbox.FindItems(itemView);

        foreach (Item item in items)
        {
            item.Load();
            m_ListOfItems.Add(item);
        }

        return m_ListOfItems;
    }

Our problem with Exchange 2013 is when the email is digitally signed, in this case email body is empty. For other emails its just fine for both plaintext/html email types. Also this code works well even for digitally signed emails on Exchange 2007 SP1.

Is anybody familiar with this problem?

Thanks.

来源:https://stackoverflow.com/questions/27149770/ews-digitally-signed-emails-have-empty-body-after-upgrade-from-exchange-2007-sp1

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