Table of Contents

Interface IStoredEmailSummaryReader

Namespace
MailFathom.Application.Emails.Summaries
Assembly
MailFathom.Application.dll

Reads locally stored email summaries by their stable local identity.

public interface IStoredEmailSummaryReader

Remarks

The port is separate from IStoredEmailTimelineReader because the two operations are asked different questions and are indexed differently: one walks a filtered timeline in keyset order, the other looks rows up by primary key. Folding the lookup into the paging contract would mean expressing an identity as a filter, and every caller of the lookup would then have to be trusted not to page.

The two methods are one question asked about one row and about several: a caller that already holds the identities of a page — a conversation's, in the order that conversation has — reads them together rather than one round trip at a time, and the set it names is bounded by whatever produced it.

It returns the same EmailSummary projection a listing does, and for the same reason: the query names the columns a summary publishes and cannot reach the stored raw MIME, which is a privacy control before it is a performance one. The content itself is read through its own port by a caller that has established it may.

Methods

FindAsync(StoredEmailId, CancellationToken)

Finds one stored email.

ReadSummariesAsync(IReadOnlyList<StoredEmailId>, CancellationToken)

Reads the summaries of the emails one page names.