Table of Contents

Class SpamActionResult

Namespace
MailFathom.Application.Spam.Actions
Assembly
MailFathom.Application.dll

What one attempt to act on a spam verdict produced.

public sealed record SpamActionResult : IEquatable<SpamActionResult>
Inheritance
SpamActionResult
Implements
Inherited Members

Remarks

The record identifiers travel back so a caller reporting what a run did can name the changes it started rather than reading them out of the store again, and so a run over a whole mailbox can count them. Neither identifier says the change has happened: a record is opened before the first IMAP command and the account's convergence pass carries it from there.

Constructors

SpamActionResult(SpamActionOutcome, MailboxMutationRecordId?, MailboxMutationRecordId?)

What one attempt to act on a spam verdict produced.

Properties

FiledRecordId

The record carrying the relocation, or null when none was asked for.

MarkedReadRecordId

The record carrying the \Seen change, or null when none was asked for.

Outcome

How the attempt ended.

Methods

NotActedOn(SpamActionOutcome)

Records that no mailbox was written to, and why.

Requested(MailboxMutationRecordId?, MailboxMutationRecordId?)

Records the changes that were written down.