Class SpamSignalProvenance
- Namespace
- MailFathom.Domain.Spam
- Assembly
- MailFathom.Domain.dll
Says where one signal came from, so the fact it states can be checked rather than only believed.
public sealed record SpamSignalProvenance : IEquatable<SpamSignalProvenance>
- Inheritance
-
SpamSignalProvenance
- Implements
- Inherited Members
Remarks
Provenance travels with every signal rather than with the classification as a whole, because one classification mixes facts of different standing: a header the receiving server wrote, the folder the mailbox filed the message in, and a rule corpus that re-read the message afterwards. A record that named only the deciding stage would leave a reader unable to tell which of them the verdict actually rested on.
Fields
- MaximumOriginLength
The greatest length an origin may carry, which every one MailFathom writes is far inside.
Properties
- Origin
Gets what within that source named the signal: a header field name, a folder alias, or a corpus revision.
- Source
Gets where the signal was read from.
Methods
- FromFolderPlacement(string)
Records that a signal is the folder the occurrence was stored from.
- FromMessageHeader(string)
Records that a signal was read out of one of the message's own headers.
- FromScannerCorpus(string)
Records that a signal came from a scanner's rule corpus.
- Restore(SpamSignalSource, string)
Reads back a provenance this system recorded earlier.