Table of Contents

Method PrepareAsync

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

PrepareAsync(MailAccountId, OutgoingMailFiling, ReadOnlyMemory<byte>, CancellationToken)

Reads and places a message for filing, before the transaction that files it.

public Task<LocalMailCopy?> PrepareAsync(MailAccountId account, OutgoingMailFiling filing, ReadOnlyMemory<byte> rawMime, CancellationToken cancellationToken)

Parameters

account MailAccountId

The account the message is filed for.

filing OutgoingMailFiling

Which place it is filed into.

rawMime ReadOnlyMemory<byte>

The message.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<LocalMailCopy>

The prepared copy, or null where no bound source folder of the account plays the role.