Exemple #1
0
 public Outlook.Rule ApplyToOutlook(Outlook.Rule rule, Rule ruleModel)
 {
     Log.Warn($"For rule '{rule.Name}', action 'MarkAsRead' cannot be enabled through the COM interface");
     return(rule);
 }
Exemple #2
0
 public Rule ApplyToModel(Rule ruleModel, Outlook.Rule rule)
 {
     ruleModel.MarkAsRead = true;
     return(ruleModel);
 }
Exemple #3
0
 public bool IsEnabled(Outlook.Rule rule) =>
 rule.Actions
 .OfType <Outlook.RuleAction>()
 .Any(x => x.Enabled && x.ActionType == Outlook.OlRuleActionType.olRuleActionMarkRead);