Table of Contents

Method ReadSourcesAsync

Namespace
MailFathom.Application.Emails.ReplyDrafts
Assembly
MailFathom.Application.dll

ReadSourcesAsync(StoredEmailId, MailboxScope, ReplyDraftBounds, CancellationToken)

Reads the conversation of one message the scope admits, with the manner its own account writes in.

Task<ReplyDraftSources?> ReadSourcesAsync(StoredEmailId answeredEmailId, MailboxScope scope, ReplyDraftBounds bounds, CancellationToken cancellationToken)

Parameters

answeredEmailId StoredEmailId

The message being answered, whose conversation and account decide everything read here.

scope MailboxScope

The accounts and folders configuration admits.

bounds ReplyDraftBounds

How much of the conversation and how much of the account's sent mail travels.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<ReplyDraftSources>

What the drafting is written from, or null where this scope holds no such message — which is what a caller answers exactly as it answers a message nobody holds, so nothing here reports that somebody else's correspondence exists.

Exceptions

ArgumentNullException

Thrown when scope or bounds is null.