Table of Contents

Interface IMailboxMutationAuditEntryStore

Namespace
MailFathom.Application.Mail.Mutations.Audit
Assembly
MailFathom.Application.dll

Keeps the audit trail of the changes MailFathom made to remote mailboxes.

public interface IMailboxMutationAuditEntryStore

Remarks

The trail is append-only through this port. Nothing amends an entry, because an entry states an ending that has already happened; the only write besides an append is the erasure the account's retention or a data-subject request calls for, which removes whole entries rather than editing them.

Methods

AppendAsync(IPersistenceSession, MailboxMutationAuditEntry, CancellationToken)

Appends one entry to the trail.

EraseCompletedBeforeAsync(MailAccountId, DateTimeOffset, int, CancellationToken)

Erases up to a bounded number of one account's entries that ended before a given instant.

ReadPageAsync(MailboxMutationAuditQuery, CancellationToken)

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