Class SenderTrust
- Namespace
- MailFathom.Domain.Emails.Authentication
- Assembly
- MailFathom.Domain.dll
What this deployment decided about the author one message authenticated as.
public sealed record SenderTrust : IEquatable<SenderTrust>
- Inheritance
-
SenderTrust
- Implements
- Inherited Members
Remarks
It is the second of a message's two sender verdicts and reads the first. SenderAuthentication says what the receiving server established about the message, which is a fact about the message; this says whether the authenticated author is one this deployment recognizes, which is a decision about a list an operator and a reader both write to. Keeping them apart is what lets the list change without the facts changing under it, and it is why this carries no value for the author was not authenticated — that is the other verdict's to state.
It is stored rather than computed on read, so a message keeps the answer it was judged with. What makes that legible is PolicyRevision: it names the list the answer came from, and a verdict nothing judged carries None.
Properties
- GrantedBy
Gets which half of what this deployment knows recognized the author, or that none did.
- IsTrusted
Gets whether this deployment recognized the message's authenticated author.
- Level
Gets what this deployment decided, which is the value everything above this reads first.
- NotEvaluated
Gets the verdict a message reaching persistence without a policy having spoken carries.
- PolicyRevision
Gets the trusted-sender policy the decision was reached under.
Methods
- Trusted(SenderTrustSource, SenderTrustPolicyRevision)
Records that this deployment recognized the message's authenticated author.
- Unknown(SenderTrustPolicyRevision)
Records that this deployment recognizes nobody in the message.