Method WithDraftsAlone
- Namespace
- MailFathom.Application.Mail.Delivery.Outbox
- Assembly
- MailFathom.Application.dll
WithDraftsAlone(IReadOnlyList<MailDraftFilingResult>)
Reports a pass that settled an account's drafts and reached no outbox at all.
public static MailOutboxPassReport WithDraftsAlone(IReadOnlyList<MailDraftFilingResult> draftResults)
Parameters
draftResultsIReadOnlyList<MailDraftFilingResult>What each attempt to bring the drafts folder into step with a held draft did.
Returns
- MailOutboxPassReport
The report, which measures no outbox depth for the reason Empty gives.
Remarks
It is what an account with no submission endpoint produces. Such an account still keeps drafts, because a draft is written over IMAP, so the sweep that resumes them runs for it — and everything the outbox would have said is absent rather than zero, since nothing about the outbox was read.
Exceptions
- ArgumentNullException
Thrown when
draftResultsis null.