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
answeredEmailIdStoredEmailIdThe message being answered, whose conversation and account decide everything read here.
scopeMailboxScopeThe accounts and folders configuration admits.
boundsReplyDraftBoundsHow much of the conversation and how much of the account's sent mail travels.
cancellationTokenCancellationTokenCancels 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
scopeorboundsis null.