Table of Contents

Method ReadOutstandingAsync

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

ReadOutstandingAsync(MailAccountId, int, CancellationToken)

Reads the drafts of one account that still owe the mail server something.

Task<IReadOnlyList<MailDraftRecord>> ReadOutstandingAsync(MailAccountId accountId, int maxCount, CancellationToken cancellationToken)

Parameters

accountId MailAccountId

The account whose drafts are read.

maxCount int

The greatest number of drafts to answer with.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<IReadOnlyList<MailDraftRecord>>

The drafts with outstanding work, oldest revision first, bounded by maxCount.

Remarks

It is the resume path. An account whose drafts are all settled answers nothing, so a pass over it costs one bounded query rather than a session.