Table of Contents

Interface IContactCorrespondenceIndex

Namespace
MailFathom.Application.Contacts.Correspondence
Assembly
MailFathom.Application.dll

Reads what the stored mail and the attachment index already hold about a set of addresses.

public interface IContactCorrespondenceIndex

Remarks

Two reads rather than one, because they are two indexes: the conversations come off the stored messages and the documents off the attachment rows derived from them. A single answer would make a mailbox whose derivation has not caught up look like a mailbox with no correspondence in it.

Neither read decides what a caller may see. The scope is handed in, already resolved, and is the same narrowing every other mail-returning read composes — an implementation that narrowed by anything of its own would be a second reading of a caller's entitlement.

Methods

ReadRecentDocumentsAsync(MailboxScope, IReadOnlyList<string>, DateTimeOffset, CancellationToken)

Reads the most recent documents sent from any of the addresses.

ReadRecentThreadsAsync(MailboxScope, IReadOnlyList<string>, DateTimeOffset, CancellationToken)

Reads the most recent conversations naming any of the addresses.