Table of Contents

Method Create

Namespace
MailFathom.Application.Rules
Assembly
MailFathom.Application.dll

Create(MailRuleSetRevision, IReadOnlyList<MailRuleEvaluation>, bool, MailRuleActionPlan?)

Records the result of one pass over a rule set.

public static MailRuleSetEvaluation Create(MailRuleSetRevision revision, IReadOnlyList<MailRuleEvaluation> evaluations, bool stoppedEarly, MailRuleActionPlan? actionPlan = null)

Parameters

revision MailRuleSetRevision

The rule set the pass ran against.

evaluations IReadOnlyList<MailRuleEvaluation>

What each rule the pass reached concluded, in declared order.

stoppedEarly bool

Whether a matching rule ended the pass.

actionPlan MailRuleActionPlan

What the matching rules ask the mailbox for, or nothing when they ask for no change.

Returns

MailRuleSetEvaluation

The pass.

Exceptions

ArgumentNullException

Thrown when evaluations is null.

ArgumentException

Thrown when the revision is unspecified.