Table of Contents

Interface IMailRuleExecutionStore

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

Keeps the record of what each rule concluded about each email, and what those conclusions asked for.

public interface IMailRuleExecutionStore

Remarks

Append-only through this port. Nothing amends an execution, because an execution states a reading that has already happened; the only writes besides an append are the erasure the retention window calls for, and the deletion of an email, which reaches the executions naming it through that email's own deletion path rather than through anything here.

Methods

AppendAsync(IPersistenceSession, IReadOnlyList<MailRuleExecution>, CancellationToken)

Appends one batch's executions to the history.

EraseEvaluatedBeforeAsync(MailAccountId, DateTimeOffset, int, CancellationToken)

Erases up to a bounded number of one account's executions recorded before a given instant.

ReadPageAsync(MailRuleExecutionQuery, CancellationToken)

Reads one bounded page of an account's history, newest first.