Table of Contents

Method Read

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

Read(SpamHeaderFacts, MailFolderAlias, bool)

Reads a verdict out of one message's headers and where the mailbox filed it.

public DeterministicSpamReading Read(SpamHeaderFacts facts, MailFolderAlias folderAlias, bool isJunkFolder)

Parameters

facts SpamHeaderFacts

What the message's headers carried.

folderAlias MailFolderAlias

MailFathom's own name for the folder the occurrence was stored from.

isJunkFolder bool

Whether that folder is the one the account advertises as its junk folder.

Returns

DeterministicSpamReading

The verdict, the assessment when a source carried both numbers, and every observed fact.

Remarks

Nothing here reads the body, and nothing here writes. The same headers produce the same reading whenever it runs, which is what lets a classification be recomputed for an occurrence without the message being fetched again.

Exceptions

ArgumentNullException

Thrown when facts is null.