Class SenderTrustEvaluatingEmailMimeReader
- Namespace
- MailFathom.Application.Emails.Extraction
- Assembly
- MailFathom.Application.dll
Holds the author a message authenticated as against what the receiving account recognizes.
public sealed class SenderTrustEvaluatingEmailMimeReader : IEmailMimeReader
- Inheritance
-
SenderTrustEvaluatingEmailMimeReader
- Implements
- Inherited Members
Remarks
A decorator rather than a step inside the parsing adapter, because the two halves answer different questions: what the receiving server established is read out of the message's bytes and is true of the message forever, while whether this deployment recognizes the author it established is a decision about a list an operator and a reader both write to. Keeping the decision above the parser is what leaves the parser with no opinion to hold.
It sits at this seam for the reason RedactingEmailMimeReader does: 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, so the verdict is written wherever a reading is and re-derived wherever one is re-derived.
The verdict is stored rather than recomputed on read, so a later change to a list does not silently rewrite what a reader was already shown. What re-judges mail already stored is the extraction backfill, which is the same deliberate act that re-reads it after an account gained a trusted authority.
Constructors
- SenderTrustEvaluatingEmailMimeReader(IEmailMimeReader, ISenderTrustPolicyReader)
Initializes a reader that judges the author the one it wraps established.
Methods
- ReadMetadataAsync(RemoteEmailContent, CancellationToken)
Reads one message's normalized metadata.