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
accountMailAccountIdThe account the message is filed for.
filingOutgoingMailFilingWhich place it is filed into.
rawMimeReadOnlyMemory<byte>The message.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<LocalMailCopy>
The prepared copy, or null where no bound source folder of the account plays the role.