在Outlook上回复时获取以前的MailItem [英] Get previous MailItem when reply on outlook

查看:212
本文介绍了在Outlook上回复时获取以前的MailItem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们是开发Outlook插件.我们提供按钮工作作为默认发送"按钮的替代方法.我们需要将通过按钮答复的所有MailItem保存到特定类别. 当用户回复电子邮件(在新的检查器中)时,如何获得主MailItem的答复?

We are developer an outlook plugin. We provide an button work as alternative of default Send button. We need save all MailItem replied by our button to a specific category. When user reply an email (in new inspector), how can I get the main MailItem be replied ?

推荐答案

用户可以从Explorer或Inspector进行回复.

A user can reply from either Explorer or Inspector.

在使用Explorer的情况下,请捕获Explorer.SelectionChange事件并在所选项目上设置事件接收器.您可以捕获MailItem.Reply/ReplyAll/Forward事件.

In case of Explorer, trap the Explorer.SelectionChange event and set up event sinks on the selected items. You can trap the MailItem.Reply/ReplyAll/Forward events.

如果是检查员,则捕获Application.Inspectors.NewInspector事件,并在从Inspector.CurrentItem属性返回的MailItem上设置事件接收器.然后,您将再次捕获MailItem.Reply/ReplyAll/Forward事件.

In case of inspectors, trap the Application.Inspectors.NewInspector event, and set up an event sink on the MailItem returned from Inspector.CurrentItem property. You will then, again, trap the MailItem.Reply/ReplyAll/Forward events.

这篇关于在Outlook上回复时获取以前的MailItem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆