Outlook vsto 中的邮件接收/移动/删除/创建/发送事件
在 Outlook 中检测电子邮件是否已接收/移动/删除/创建/发送的最佳方法是什么?
我知道应用程序上有 NewMail/NewMailEx,文件夹上有 BeforeItemMove。
NewMail/NewMailEx 涵盖了收到邮件的情况,但我需要处理邮件发生问题的所有情况。
BeforeItemMove 很有帮助,但我需要一个应用程序范围的事件,而不是特定于文件夹的事件。我可以遍历文件夹树并为每个文件夹添加事件处理程序,但这似乎不正确。
有什么指针吗?
What is the best way to detect if an email is received/moved/deleted/created/sent in Outlook?
I know of NewMail/NewMailEx on the Application and BeforeItemMove on a Folder.
NewMail/NewMailEx covers the mail received case but I need to handle all scenarios where something happens to a message.
BeforeItemMove is helpful but I need an application wide event, not a folder specific one. I could walk the folder tree and add event handlers for every folder but it doesn't seem right.
Any pointer?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不同意dventure。我已在自己的应用程序中使用 Outlook 中的操作来执行事件。即,在移动电子邮件时,它会出现一个对话框,而发送电子邮件时会执行其他操作。
这是让我开始的链接:
http://easyvsto.wordpress.com/2010/07/27/how-to-save-mail-content-when-a-mail-is-sent-from-outlook /
除了上面链接中的发送操作之外,还有一个移动操作。
I disagree with drventure. I have used the actions in outlook within my own application to do events. I.e. on moving an email it comes up with a dialog, with sending it does something else.
Here is a link that got me started:
http://easyvsto.wordpress.com/2010/07/27/how-to-save-mail-content-when-a-mail-is-sent-from-outlook/
Further to the send action in the link above, there is a move action as well.
我不相信有这样的事件。我过去所做的是监视应用程序对象,以了解“活动”文件夹何时发生变化。在这种情况下,我会连接到任何活动文件夹,并开始监控 IT 部门对其所包含的电子邮件项目的更改,因为用户要对文件夹中的项目执行任何操作,必须首先导航到该文件夹文件夹。
I don't believe there is such an event. What I've done in the past is monitor the app object for when the "active" folder changes. In that event, I connect up to whatever the active folder is and start monitoring IT for changes to it's contained email items, under the notion that for a user to do anything to the items in a folder, that have to first have navigated to that folder.