get outlook mailitem for message taken from outlook table

馋奶兔 提交于 2019-12-22 09:18:07

问题


How can I get a reference to the MailItem for a message taken from an Outlook table? If I generate a table which contains rows with messages and tell it to add the column with messages' EntryID, the EntryID is not the same one as the one I can see for the same message when I simply loop through the folder's Items list.

Is there any other way to get the message?

I'm using Outlook 2007 and 2010. Thanks in advance.


回答1:


If your store is an Exchange mailbox, then the table will return short-term entry IDs for the PR_ENTRYID property. These entry IDs are valid for the current session, but should not be persisted. To force the table to return long-term IDs, request the PR_LONGTERM_ENTRYID_FROM_TABLE (0x66700102) property instead; however, be careful that this property will be absent for PST providers.

Reference: MAPI Tables by Dmitry Streblechenko



来源:https://stackoverflow.com/questions/10848813/get-outlook-mailitem-for-message-taken-from-outlook-table

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