Table of Contents

Method PlaceAsync

Namespace
MailFathom.Application.Folders.Local
Assembly
MailFathom.Application.dll

PlaceAsync(IPersistenceSession, MailAccountId, StoredEmailId, LocalMailFolderId, CancellationToken)

Places a stored message in a local folder, unless it is already in one.

Task PlaceAsync(IPersistenceSession session, MailAccountId account, StoredEmailId email, LocalMailFolderId folder, CancellationToken cancellationToken)

Parameters

session IPersistenceSession

The transaction that stores the message.

account MailAccountId

The account the message belongs to.

email StoredEmailId

The stored message.

folder LocalMailFolderId

The folder it arrives in.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task

Remarks

A message already in a folder stays there, so a message synchronization meets again is not moved back to where it first arrived.