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
factsSpamHeaderFactsWhat the message's headers carried.
folderAliasMailFolderAliasMailFathom's own name for the folder the occurrence was stored from.
isJunkFolderboolWhether 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
factsis null.