得到消息的前景的MailItem从Outlook取表 [英] get outlook mailitem for message taken from outlook table
问题描述
我怎样才能从一个Outlook表采取了消息的MailItem的参考?如果我生成包含行与消息,并告诉它带有消息的EntryID添加列一个表,该的EntryID是不一样的一个作为一个我可以看到同样的消息时,我只需通过该文件夹的项目列表循环。
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?
我使用的是Outlook 2007和2010年。在此先感谢前进。
I'm using Outlook 2007 and 2010. Thanks in advance.
推荐答案
如果你的店是一个Exchange邮箱,则该表将恢复短期入境的ID为 PR_ENTRYID
属性。这些入口标识的有效期为当前会话,但不应该被持久化。要强制表以返回长期的标识,要求 PR_LONGTERM_ENTRYID_FROM_TABLE
( 0x66700102
)属性来代替;但是,要小心,这家酒店将缺席PST提供商
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.
参考:的 MAPI由梅德Streblechenko
Reference: MAPI Tables by Dmitry Streblechenko
这篇关于得到消息的前景的MailItem从Outlook取表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!