Table of Contents

Method Classification

Namespace
MailFathom.Domain.Mutations
Assembly
MailFathom.Domain.dll

Classification(string, double?)

Names the profile a spam classification was decided under, which is what asked for the mutation.

public static MailboxMutationRequester Classification(string decidedUnder, double? actingThreshold)

Parameters

decidedUnder string

What the deciding stage ran under — a scanner's rule corpus, or the stage's own name where it has none.

actingThreshold double?

The score MailFathom itself requires before it touches mail, or null when the operator configured none.

Returns

MailboxMutationRequester

A requester naming that profile.

Remarks

A classification asks the way a rule does — on its own, repeatedly, about mail nobody is looking at — so it needs the same kind of identity: one that does not move when the same decision is reached again, and does move when the terms of the decision change. What a rule answers with its name and revision, a classification answers with the corpus its verdict was reached against and the threshold MailFathom would act at. Rescanning the same message against the same corpus therefore asks for nothing new, and a corpus update or a threshold an operator moved asks afresh.

The occurrence is deliberately not part of this text. It is already the first third of the record's own idempotency identity, so repeating it here would spend the identity's length on a value the constraint already compares.

Exceptions

ArgumentException

Thrown when decidedUnder is blank, carries a control character, or is long enough that the composed identity exceeds MaximumIdentityLength.

ArgumentOutOfRangeException

Thrown when actingThreshold is not a finite number.