从 IRDOMail 获取 _MailItem 接口
我有一个 Outlook 插件。我正在使用救赎。
具体来说,我使用 IRDOMail::Move 将电子邮件项目从一个文件夹移动到另一个文件夹(兑换是我发现适用于所有存储的唯一方法)。我现在需要恢复对 Outlook 的 _MailItem 接口的保留,而我只有一个指向兑换对象的指针。看来 Redemption 可以与 MAPI(它派生自)一起使用,而我需要的是 Outlook 界面。
谢谢。
I've an Outlook plug-in. I'm using Redemption.
Specifically, I'm using IRDOMail::Move in order to move an email item from one folder to another (redemption is the only method I've found that work with all storages). I now have a need to get back a hold to the Outlook's _MailItem interface, while I only have a pointer to the redemption object. It appears Redemption works with MAPI (it is derived from), and what I need is the Outlook interface.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用 RDOMail.EntryID 属性通过 Namespace.GetItemFromID 将邮件重新打开为 Outlook.MailItem
Use RDOMail.EntryID property to reopen the message as Outlook.MailItem using Namespace.GetItemFromID
IRDOMAIL::MAPIOBJECT 将为您提供底层 MAPI 对象。也许您可以使用它而不以某种方式导航到 Outlook 界面。
赎回使用 MAPI 是的,它的目标是完全替代 CDO 1.21
IRDOMAIL::MAPIOBJECT will give you the underlying MAPI object. Perhaps you can use that not somehow navigate to the Outlook interface.
Redemption uses MAPI yes and it also aims to be a be a full replacement for CDO 1.21