Outlook插件新邮件信息C#

发布于 2024-09-29 16:05:25 字数 164 浏览 0 评论 0原文

我正在开发一个 Outlook 插件。现在,我需要在 Outlook 中下载邮件之前知道附件的文件名、大小以及可能的邮件内容。因此,我们可以采取相应的行动并当场删除该邮件。 我知道当新邮件到达时,Outlook 会触发新邮件事件。那么,这个活动是否适合我呢?不知道下载后是否会被触发? 请帮我解决这个问题。 谢谢

I am working on an outlook plug-in. Now, I have a requirement to know the attached file name, size and possible then the content of mail before downloading the mail in the outlook. So, we can take action accordingly and delete the mail then and there.
I know the new mail event is fired from Outlook when a new mail arrived. So, this event is suites for me or not? I don’t know whether it’s fired after download before to download?
Please help me on this.
Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

橘寄 2024-10-06 16:05:25

下载后(当新邮件项目实际位于您的收件箱中时)会触发它。

基于 MSDN

NewMail 事件在新邮件时触发
邮件到达收件箱并
在客户端规则处理发生之前。
如果您想处理以下项目
到达收件箱,考虑使用
集合上的 ItemAdd 事件
收件箱中的项目。项目添加事件
传递对每个项目的引用
已添加到文件夹中。

It's fired after download (when the new mail item is actually in your inbox).

Based on MSDN:

The NewMail event fires when new
messages arrive in the Inbox and
before client rule processing occurs.
If you want to process items that
arrive in the Inbox, consider using
the ItemAdd event on the collection of
items in the Inbox. The ItemAdd event
passes a reference to each item that
is added to a folder.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文