Class MailTimelineBrowser
- Namespace
- MailFathom.Application.Emails.BrowseTimeline
- Assembly
- MailFathom.Application.dll
Reads one page of a message list, in either direction, from the local mailbox copy.
public sealed class MailTimelineBrowser
- Inheritance
-
MailTimelineBrowser
- Inherited Members
Remarks
It is the timeline read a screen is drawn from, beside MailboxTimelineReader, which is the one a tool calls. The two share the scope, the filters, the ordering, the page bound and the cursor codec — a list and a listing are the same walk over the same rows — and differ in the two things a screen needs and a tool does not: a row carries the opening of the message so a list can be drawn from what one request returned, and the walk runs in both directions so somebody who scrolled down can scroll back.
Scrolling back is a second walk over the same list rather than a second list. The order the rows are sorted in is part of what a cursor was issued for, so it never changes with the direction a page is asked in: a backward page is read away from the cursor with the walk reversed and handed back in the sorted order, and its cursors carry the sorted list's fingerprint. That is what lets a client page in both directions from cursors it collected in either.
It reaches no mail server. A page answers 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, and it publishes more of a message than a tool listing does, so where a sensitive-content scanner is switched on the subject, the sender's display name, the preview and the readings of every row are scanned before the page is returned; a scanner that cannot answer refuses the page rather than serving it unscanned.
Constructors
- MailTimelineBrowser(IStoredEmailTimelineReader, IStoredEmailPreviewReader, IStoredEmailEnrichmentReader, IEmailThreadReader, MailboxScopeResolver, SensitiveContentEgressGuard, IMailboxReadTelemetry, AccessAuthorization)
Initializes the use case.
Methods
- BrowsePageAsync(BrowseTimelineRequest, CancellationToken)
Reads one page of the list.