Table of Contents

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

content StoredEmailContent

The raw MIME already stored for the occurrence.

cancellationToken CancellationToken

Cancels 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 content is null.