Table of Contents

Class MachineAuthorshipEvaluatingEmailMimeReader

Namespace
MailFathom.Application.Emails.Extraction
Assembly
MailFathom.Application.dll

Judges how much a message's own text reads as machine written, from the text the parse already produced.

public sealed class MachineAuthorshipEvaluatingEmailMimeReader : IEmailMimeReader
Inheritance
MachineAuthorshipEvaluatingEmailMimeReader
Implements
Inherited Members

Remarks

A decorator rather than a step inside the parsing adapter, for the reason SenderTrustEvaluatingEmailMimeReader is one: what the message's bytes say is read out of the message, while what a combination of signals is worth is a judgement this deployment makes and may make differently later. Keeping the judgement above the parser leaves the parser with no opinion to hold.

It sits at this seam so that both paths that produce a reading — synchronization reading a message it has just fetched, and the backfill re-reading raw MIME stored earlier — reach it through this port. The assessment is therefore written wherever a reading is, and re-derived wherever one is re-derived.

It sits below redaction deliberately. Redaction replaces the words a scanner recognized as sensitive, and reading the text afterwards would judge a message partly by what a scanner rewrote in it. Reading it first is safe because nothing about the text leaves this step: what comes out is a signal set, a number, and a band, none of which can carry a fragment of the message.

Constructors

MachineAuthorshipEvaluatingEmailMimeReader(IEmailMimeReader, MachineAuthorshipProfile)

Initializes a reader that assesses the text the one it wraps extracted.

Methods

ReadMetadataAsync(RemoteEmailContent, CancellationToken)

Reads one message's normalized metadata.