Table of Contents

Method SettleOutstandingAsync

Namespace
MailFathom.Application.Mail.Delivery.Drafts
Assembly
MailFathom.Application.dll

SettleOutstandingAsync(MailAccountId, CancellationToken)

Settles every draft of one account that still owes the mail server something.

public Task<IReadOnlyList<MailDraftFilingResult>> SettleOutstandingAsync(MailAccountId accountId, CancellationToken cancellationToken)

Parameters

accountId MailAccountId

The account whose drafts are settled.

cancellationToken CancellationToken

Cancels the reads and the commands.

Returns

Task<IReadOnlyList<MailDraftFilingResult>>

What each attempt did, which is empty on an account with nothing outstanding.

Remarks

A promoted draft is settled as a promotion rather than as a draft, because the mark that gives it up is written once and by the pass that delivered its send — so a give-up whose write never committed is reached here and nowhere else, and a promotion still waiting to be delivered answers nothing.