3
我正在編寫一個必須獲取可與規則匹配的項目的應用程序。如何檢查可應用於Outlook中的郵件項目的所有規則
//new messages goes here
void items_ItemAdd(object Item)
{
//all rules
Rules rules = Application.Session.DefaultStore.GetRules();
Outlook.MailItem mail = (Outlook.MailItem)Item;
if (mail != null)
{
// I need to find out if mail matches with one of the rule. And handle in an appropriate way.
}
}
你能否給我提供代碼片段。 – Alexandr 2012-07-12 13:58:24
要做到「規則條件」的複雜性 - 您必須通過您想要支持的每個條件1乘1。我可以添加一個參考例子。 – SliverNinja 2012-07-12 14:00:49
,將不勝感激。 – Alexandr 2012-07-12 14:06:35