Class EmailKnowledgePassage
- Namespace
- MailFathom.Application.Retrieval
- Assembly
- MailFathom.Application.dll
One bounded extract of mail, with the identity and the coordinates an answer is traced back through.
public sealed record EmailKnowledgePassage : IEquatable<EmailKnowledgePassage>
- Inheritance
-
EmailKnowledgePassage
- Implements
- Inherited Members
Remarks
This is the only shape mail content travels in on its way to a model. It carries an extract rather than a message: the bound is applied before the passage exists, so nothing downstream can widen it, and a retrieval that matched a long thread hands over what was relevant rather than the thread.
The identity travels with the text because an answer that cannot say where a claim came from cannot be checked. The stored identifier is the same one every other read names an email by, so a reader given a passage can fetch the whole message; the account and the folder alias are the deployment's own names for where it was read from.
A passage is mail content and inherits the classification of the message it was cut from. It is never logged, never attached to a span, and never exported.
Properties
- AccountId
Gets the account whose mailbox the email was read from.
- FolderAlias
Gets the folder alias the email was read from.
- ReceivedAt
Gets when the last receiving hop recorded the message, or null when no header carried a usable date.
- StoredEmailId
Gets the stable local identity of the email the extract came from.
- Text
Gets the extract itself, already cut to the size one passage may carry.