Table of Contents

Method ReadRecentDocumentsAsync

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

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

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

Task<IReadOnlyList<CorrespondingDocument>> ReadRecentDocumentsAsync(MailboxScope scope, IReadOnlyList<string> normalizedAddresses, DateTimeOffset correspondedOnOrAfter, CancellationToken cancellationToken)

Parameters

scope MailboxScope

The accounts and folders the caller may read, which the query is narrowed by.

normalizedAddresses IReadOnlyList<string>

The comparison forms of the contact's addresses, matched against the message's sender alone.

correspondedOnOrAfter DateTimeOffset

The start of the window, before which nothing is read.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<IReadOnlyList<CorrespondingDocument>>

At most Documents documents, newest first, and empty where the window holds none.