Constructor MailAnswerCitation
- Namespace
- MailFathom.Application.Retrieval.AskMail
- Assembly
- MailFathom.Application.dll
MailAnswerCitation(StoredEmailId, MailAccountId, MailFolderAlias, string?, DateTimeOffset?)
One email an answer was drawn from, named so the reader can go and read it.
public MailAnswerCitation(StoredEmailId StoredEmailId, MailAccountId AccountId, MailFolderAlias FolderAlias, string? Subject, DateTimeOffset? ReceivedAt)
Parameters
StoredEmailIdStoredEmailIdThe stable local identity, which is the same one every other read names an email by.
AccountIdMailAccountIdThe account whose mailbox it was read from.
FolderAliasMailFolderAliasThe folder alias it was read from.
SubjectstringThe subject it carried, or null when it carried none.
ReceivedAtDateTimeOffset?When the last receiving hop recorded it, or null when no header carried a usable date.
Remarks
A citation is what turns an answer into a starting point rather than something to be believed: the identifier resolves through the single-email read, so every claim can be checked against the message it came from.
It deliberately carries no extract. The passage the run retrieved is bounded mail content that has already reached a provider, and republishing it here would put mail into a second response that nobody asked to read; the subject and the received time are what let a reader recognize the message before fetching it.
One per email rather than one per passage. A run makes several lookups and one message can answer more than one of them, and a caller reading a list of sources wants the messages rather than the number of times each was found.