Table of Contents

Class SpamAssessment

Namespace
MailFathom.Domain.Spam
Assembly
MailFathom.Domain.dll

A numeric score together with the threshold it was judged against.

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

Remarks

The two are one value because neither means anything alone: a score of 6 is spam under one threshold and ordinary mail under another, so a record that kept only the score could not be re-read after an operator moved the threshold. Not every classification reaches one — sender authentication and a folder placement are facts rather than measurements — which is why the classification holds this optionally.

Properties

ClearsThreshold

Gets whether the score cleared the threshold.

Score

Gets the score the message reached.

Threshold

Gets the score at or above which the message counts as spam.

Methods

Create(double, double)

Records a score against the threshold it was judged by.