Constructor EnrichableEmail
- Namespace
- MailFathom.Application.Emails.Enrichment
- Assembly
- MailFathom.Application.dll
EnrichableEmail(StoredEmailId, string?, DateTimeOffset?, IReadOnlyList<EnrichablePassage>)
One message as a derivation is shown it: what a reader would see at the top, and its passages.
public EnrichableEmail(StoredEmailId StoredEmailId, string? Subject, DateTimeOffset? ReceivedAt, IReadOnlyList<EnrichablePassage> Passages)
Parameters
StoredEmailIdStoredEmailIdThe message being derived from.
SubjectstringThe subject, or null where the message carried none.
ReceivedAtDateTimeOffset?When the last receiving hop recorded the message, which is what a date in the text is read against.
PassagesIReadOnlyList<EnrichablePassage>The message's own passages, in reading order and bounded by what one derivation may read.
Remarks
Deliberately narrow. A derivation is shown the subject, the arrival instant, and the text — never the sender, the addressees, the folder, or the account — because none of those is what a sentence about the message is derived from, and every one of them is a participant this deployment would then be sending to a provider for no reading it buys.
The arrival instant is here so that a relative date the text states can be resolved into one a row can show. It is the message's own metadata rather than the current time, which is what keeps a derivation reproducible: the same message derived again next month resolves *by Friday* to the same day.