Table of Contents

Method Compose

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

Compose(MailAccountId, StoredEmailId, MailRuleSetEvaluation, MailRuleExecutionTrigger, MailRuleActionRecording, DateTimeOffset)

Composes the executions one evaluated email leaves behind.

public static IReadOnlyList<MailRuleExecution> Compose(MailAccountId accountId, StoredEmailId storedEmailId, MailRuleSetEvaluation evaluation, MailRuleExecutionTrigger trigger, MailRuleActionRecording recording, DateTimeOffset evaluatedAt)

Parameters

accountId MailAccountId

The account whose mail was evaluated.

storedEmailId StoredEmailId

The local identity of the email.

evaluation MailRuleSetEvaluation

What the rule set concluded, under the revision it concluded it.

trigger MailRuleExecutionTrigger

Which of the pass's two walks reached the email.

recording MailRuleActionRecording

What opening mutation records for the plan produced.

evaluatedAt DateTimeOffset

The instant the email was evaluated at.

Returns

IReadOnlyList<MailRuleExecution>

One execution per rule the pass reached, in the order the rules were reached.

Exceptions

ArgumentNullException

Thrown when an argument is null.