本文介绍了识别符合规则的邮件项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么办法知道哪个MailItem满足给定的Rule吗?

Is there any way to know which MailItems satisfy a given Rule?

我的意思是通过应用Rule来移动一组电子邮件(作为一次性操作),但是然后知道是哪些.

I mean to move a set of emails by applying a Rule (as a one-off operation), but then know which were these.

推荐答案

您可以解析规则条件(Rule.Conditions)并以编程方式检查它们是否适用于特定消息,或者可以调用Rule.Execute并让它进行处理做它需要做的事.您可以提前在目标文件夹(Items.ItemAdd)上设置事件处理程序,以了解哪些项目已移至目标文件夹.

You can either parse the rule conditions (Rule.Conditions) and programmatically check if they apply to a particular message, or you can call Rule.Execute and let it do what it needs to do. You can set up event handler on the target folder (Items.ItemAdd) ahead of time to figure out which items were moved to the target folder.

这篇关于识别符合规则的邮件项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 01:14