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
sessionIPersistenceSessionThe transaction that stores the message.
accountMailAccountIdThe account the message belongs to.
emailStoredEmailIdThe stored message.
folderLocalMailFolderIdThe folder it arrives in.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
Remarks
A message already in a folder stays there, so a message synchronization meets again is not moved back to where it first arrived.