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
scopeMailboxScopeThe accounts and folders the caller may read, which the query is narrowed by.
normalizedAddressesIReadOnlyList<string>The comparison forms of the contact's addresses, matched against the message's sender alone.
correspondedOnOrAfterDateTimeOffsetThe start of the window, before which nothing is read.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<IReadOnlyList<CorrespondingDocument>>
At most Documents documents, newest first, and empty where the window holds none.