Table of Contents

Method EraseAsync

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

EraseAsync(IPersistenceSession, MailAccountId, StoredEmailId, CancellationToken)

Erases a message filed earlier, inside the transaction that replaces or gives up what it showed.

public Task<MailFolderAlias?> EraseAsync(IPersistenceSession session, MailAccountId account, StoredEmailId email, CancellationToken cancellationToken)

Parameters

session IPersistenceSession

The transaction.

account MailAccountId

The account the message was filed for.

email StoredEmailId

The message.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<MailFolderAlias?>

The alias it was stored under, or null where it was already gone.