Table of Contents

Class EmailEnrichmentProvenance

Namespace
MailFathom.Application.Emails.Enrichment
Assembly
MailFathom.Application.dll

Says what produced one mark and what within that source it was: a rule's name, or an agent's.

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

Remarks

Provenance travels with every mark rather than with the message's enrichment as a whole, because one message's marks may come from different places: a date a deterministic reading of the message settles is not the same standing as a sentence a model wrote, and a record naming only the derivation that wrote the row would leave a reader unable to tell which of them a mark actually rests on.

The origin is MailFathom's own name for the producer — a rule identity or a composed agent's name — and never anything a message carried. It is refused rather than shortened when it is over-long, for the reason a spam signal's provenance refuses one: every origin this system writes is short by construction, so a long one is a producer that named itself wrongly rather than a name to trim.

Fields

MaximumOriginLength

The greatest length an origin may carry.

Properties

Origin

Gets what within that source produced it: a rule identity, or the name the agent was composed under.

Source

Gets what produced the mark.

Methods

FromAgent(string)

Records that a mark was produced by a model, named by the agent the derivation was composed as.

FromRule(string)

Records that a mark was produced by one of this deployment's own deterministic rules.

Restore(EmailEnrichmentSource, string)

Reads back a provenance this system recorded earlier.