Method ScanAsync
- Namespace
- MailFathom.Application.Spam.Scanning
- Assembly
- MailFathom.Application.dll
ScanAsync(StoredEmailContent, CancellationToken)
Scores one message.
Task<SpamScanResult> ScanAsync(StoredEmailContent content, CancellationToken cancellationToken)
Parameters
contentStoredEmailContentThe raw MIME already stored for the occurrence.
cancellationTokenCancellationTokenCancels the scan.
Returns
- Task<SpamScanResult>
The score and what produced it, or the reason nothing was scored.
Remarks
A scanner that cannot be reached, does not answer within its bound, or answers unintelligibly is reported as Unavailable rather than raised, because the caller continues with the deterministic verdict either way.
Exceptions
- ArgumentNullException
Thrown when
contentis null.