Table of Contents

Interface IStoredEmailPreviewReader

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

Reads the opening of the derived text of the emails one page names.

public interface IStoredEmailPreviewReader

Remarks

The port is read-only and joins no transaction, per ADR 0001.

It is a second read beside the timeline rather than a column on it, because the text a preview is cut from lives in a table of its own — one written by extraction, read until now by search alone, and deliberately absent from every ordinary mailbox query. Reaching it by identity keeps that true: the timeline query stays the projection it was, and the text is fetched for the rows one page actually returned rather than joined to every row a filter considered.

What it answers is already bounded. An implementation asks PostgreSQL for at most MaximumCharacters characters of each message, so a body never crosses this boundary at all, and it publishes the trimmed reading of the text rather than the raw one — quoted history and signatures are what a reply's first two hundred characters would otherwise be.

Methods

ReadPreviewsAsync(IReadOnlyList<StoredEmailId>, CancellationToken)

Reads the bounded opening of each named email's text.