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); }
public Rule ApplyToModel(Rule ruleModel, Outlook.Rule rule) { ruleModel.MarkAsRead = true; return(ruleModel); }
public bool IsEnabled(Outlook.Rule rule) => rule.Actions .OfType <Outlook.RuleAction>() .Any(x => x.Enabled && x.ActionType == Outlook.OlRuleActionType.olRuleActionMarkRead);