Table of Contents

Method FindMailDraftContentAsync

Namespace
MailFathom.Application.EmailContent.Storage
Assembly
MailFathom.Application.dll

FindMailDraftContentAsync(MailDraftId, CancellationToken)

Reads back the raw MIME stored for the current revision of one draft.

Task<StoredEmailContent?> FindMailDraftContentAsync(MailDraftId draftId, CancellationToken cancellationToken)

Parameters

draftId MailDraftId

The draft to read.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<StoredEmailContent>

The stored content, or null when no draft content is stored under that identifier.

Remarks

It is what the drafts folder is appended from and what a promotion transmits, which is what keeps the message an owner reads in their own mail client and the message their correspondent receives the same bytes.