public virtual void DisableAndMarkRuleInError(Rule rule, RuleAction.Type actionType, int actionIndex, DeferredError.RuleError errorCode) { this.TraceError <Rule, DeferredError.RuleError>("Rule {0} will be disabled due to error: {1}", rule, errorCode); RuleUtil.DisableRule(rule, this.folder.MapiFolder); this.MarkRuleInError(rule, actionType, actionIndex, errorCode); }