Class SpamClassification
- Namespace
- MailFathom.Domain.Spam
- Assembly
- MailFathom.Domain.dll
What classification concluded about one stored message occurrence, and everything it concluded it from.
public sealed record SpamClassification : IEquatable<SpamClassification>
- Inheritance
-
SpamClassification
- Implements
- Inherited Members
Remarks
This is derived data of the same kind as an embedding: computed from a local copy, never mirrored back to the mail server, and never a statement about which folder the message is in or which flags it carries. It inherits the classification, retention, access, and erasure constraints of the message it describes, and it is reachable by whatever reaches that message — the record hangs off the occurrence rather than living beside it.
It carries no subject, no address, and no body. What a signal's observation can carry is a sending domain and an authentication outcome, which is why nothing here is loggable and only counts, kinds, scores, and rule names may be reported in telemetry.
Fields
- MaximumCorpusRevisionLength
The greatest length a corpus revision may carry.
- MaximumSignals
The greatest number of signals one classification records.
Properties
- Assessment
Gets the score and the threshold it was judged against, or null when no stage produced a number.
- CorpusRevision
Gets the rule corpus the deciding stage ran under, or null when it has none.
- DecidedBy
Gets which stage reached the verdict.
- EmailId
Gets the stored occurrence this classification is about.
- EvaluatedAt
Gets when the classification was evaluated.
- Profile
Gets the settings the verdict was reached under, or the unspecified value for a record that names none.
- Signals
Gets every fact the verdict rests on, in the order the stages produced them.
- Verdict
Gets what the classification concluded.
Methods
- Create(StoredEmailId, SpamVerdict, SpamClassificationStage, SpamAssessment?, string?, SpamClassificationProfile, IReadOnlyList<SpamSignal>, DateTimeOffset)
Records what a stage concluded about one occurrence.