Table of Contents

Constructor SpamActionRecorder

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

SpamActionRecorder(ISpamActionSettingsReader, ISpamActionOccurrenceReader, IMailboxMutationRecordStore, MailboxChangeSubmission, MailboxDestinationResolver, IAuthoredDeleteEmailDispositionReader, OptimisticConcurrencyRetryPolicy)

Initializes the use case from the decisions it has to read and the submission it writes through.

public SpamActionRecorder(ISpamActionSettingsReader settingsReader, ISpamActionOccurrenceReader occurrences, IMailboxMutationRecordStore records, MailboxChangeSubmission submission, MailboxDestinationResolver destinations, IAuthoredDeleteEmailDispositionReader deleteDispositions, OptimisticConcurrencyRetryPolicy retryPolicy)

Parameters

settingsReader ISpamActionSettingsReader

Answers what the message's account asked to happen to the junk in it.

occurrences ISpamActionOccurrenceReader

Reads where the classified email is and whether it is already read.

records IMailboxMutationRecordStore

Answers whether this feature has already asked for a message to be filed.

submission MailboxChangeSubmission

Records each change, or commits it where the account is held.

destinations MailboxDestinationResolver

Turns the configured junk folder into the folder on the server it currently names.

deleteDispositions IAuthoredDeleteEmailDispositionReader

Answers what the account keeps locally of mail that leaves the mirror for good.

retryPolicy OptimisticConcurrencyRetryPolicy

Commits the changes from a fresh read when a concurrent write conflicts.

Exceptions

ArgumentNullException

Thrown when a collaborator is null.