Table of Contents

Constructor EmailSpamClassificationHandler

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

EmailSpamClassificationHandler(IClassifiableEmailReader, IEmailSpamClassificationStore, EmailSpamClassifier, SpamActionRecorder)

Initializes the handler over the work one job describes.

public EmailSpamClassificationHandler(IClassifiableEmailReader emails, IEmailSpamClassificationStore classifications, EmailSpamClassifier classifier, SpamActionRecorder actionRecorder)

Parameters

emails IClassifiableEmailReader

Turns the occurrence the payload names into the local email it was stored as.

classifications IEmailSpamClassificationStore

Reads the verdict an earlier attempt recorded, so a repeated attempt still acts on it.

classifier EmailSpamClassifier

Reaches a verdict about the occurrence and records it.

actionRecorder SpamActionRecorder

Writes down whatever the operator's switches ask a verdict to do to the mailbox.

Exceptions

ArgumentNullException

Thrown when an argument is null.