Table of Contents

Class MailThreadBrowser

Namespace
MailFathom.Application.Emails.BrowseThread
Assembly
MailFathom.Application.dll

Reads one conversation as the document a thread screen is drawn from, out of the local mailbox copy.

public sealed class MailThreadBrowser
Inheritance
MailThreadBrowser
Inherited Members

Remarks

It is the read beside MailTimelineBrowser that answers what a list row's conversation is. The two share the ownership scoping, the page bound, and the projection a message is drawn from, and differ in what decides membership: a list is a filtered walk over a folder, and a conversation is every message threading put together whatever folder it landed in. That is why nothing here narrows by folder — the question is in the inbox, the answer is in the sent folder, and a thread cut to one of them is half an exchange.

The order is EmailThreadOrder's and is deliberately not this reading's own: the reply relation decides, the sent time settles messages answering the same parent, and the identity settles the rest. It is the same order the conversation an MCP content read publishes has, so two surfaces cannot come to disagree about one exchange, and for the ordinary exchange where every message answers the one before it that order is chronological.

What a message carries is what a collapsed row draws — the listing's own projection, plus the bounded opening of what this message added with the quoted history trimmed off. The whole message, quoted history included, is reached by the identity that row carries; no body crosses this boundary, because a conversation of fifty messages carrying bodies is a megabyte to draw a thread.

It reaches no mail server. A conversation is answered from what synchronization has already stored, so no request from a browser can wait on IMAP and none can set the remote \Seen flag.

A page is one of the points mail content leaves this deployment, so where a sensitive-content scanner is switched on the subject, the sender's display name, the contribution and the readings of every message are scanned before the page is returned, and so is every participant's display name; a scanner that cannot answer refuses the page rather than serving it unscanned.

Constructors

MailThreadBrowser(IEmailThreadReader, IStoredEmailSummaryReader, IStoredEmailPreviewReader, IStoredEmailEnrichmentReader, MailboxScopeResolver, SensitiveContentEgressGuard, IMailboxReadTelemetry, AccessAuthorization)

Initializes the use case.

Methods

BrowsePageAsync(BrowseThreadRequest, CancellationToken)

Reads one page of one conversation.