Table of Contents

Class SpamClassificationResult

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

What one attempt to classify an occurrence produced.

public sealed record SpamClassificationResult : IEquatable<SpamClassificationResult>
Inheritance
SpamClassificationResult
Implements
Inherited Members

Remarks

The classification travels back with the outcome so a caller that has to act on the verdict — filing junk on the server, or holding an occurrence back from embedding — does not read it again from the store it was just written to. It is derived data about mail and therefore not loggable; the outcome is.

Constructors

SpamClassificationResult(SpamClassificationOutcome, SpamClassification?)

What one attempt to classify an occurrence produced.

Properties

Classification

What was recorded, present exactly when the outcome is Classified.

Outcome

How the attempt ended.

Methods

Classified(SpamClassification)

Records what was classified.

NotClassified(SpamClassificationOutcome)

Records that nothing was classified, and why.