Table of Contents

Class CitationResolver

Namespace
MailFathom.Application.Discovery.Citations
Assembly
MailFathom.Application.dll

Follows the citations a presentation plan declared to the mail they were drawn from.

public sealed class CitationResolver
Inheritance
CitationResolver
Inherited Members

Remarks

One route for every citation a plan can hold, which is what makes the contract behind a rendered answer checkable: a block naming a source and a block naming a passage of the same message are followed the same way, so a client draws one evidence affordance rather than one per block type.

Resolution is an access decision before it is a lookup. Every message is read through the same use case the reading pane reads one with, so the accounts and folders the caller's user may read decide what a citation resolves to, and a citation composed to name somebody else's mail reads nothing. A source outside that scope is reported as private rather than as a failure: a plan is a thing to be shared, and a reader shown a fact whose source they may not open has to be able to tell that from an answer that is broken.

A citation outlives a re-cut of the mail it points at. Chunking derives a message's passages again whenever its stored reading changes, so a passage identifier is the part of a citation that can go while the message it was cut from stays. The target carries both, which is why the resolution of a passage that no longer exists is the message with the place reported unresolvable rather than a citation that leads nowhere — and never the nearest remaining passage, which would be evidence for a fact it was not drawn from.

What one request may draw out is bounded twice, and neither bound is the caller's. The count is MaximumCitations, which is what makes the number of messages read bounded as well; the size is the chunking rules', a passage being cut to a fixed length long before it is cited. Nothing about a request widens either.

Everything a resolution carries beyond an identity and an outcome is mail content. The passage crosses the guarded egress this use case opens, the message's own values crossed the one the content read opened, and none of it reaches a log, a span, or a telemetry event.

Constructors

CitationResolver(EmailContentReader, ICitedFragmentReader, MailboxScopeResolver, SensitiveContentEgressGuard)

Initializes the use case.

Fields

MaximumCitations

The greatest number of citations one request may name.

Methods

ResolveAsync(IReadOnlyList<PresentationCitationTarget>, CancellationToken)

Follows every citation one request names.