Interface ILocalMailFolderStore
- Namespace
- MailFathom.Application.Folders.Local
- Assembly
- MailFathom.Application.dll
Persists the folders MailFathom keeps for an account whose mailbox it holds, and which messages are in them.
public interface ILocalMailFolderStore
Remarks
Every read is narrowed to one account, by the generated identifier the whole mail graph is keyed by. Which caller may name that account is settled before this port is reached — MailFolderEditor resolves it against the assignments — so an identifier nothing here recognizes reads as no account at all.
Methods
- EraseEmailAsync(IPersistenceSession, MailAccountId, StoredEmailId, CancellationToken)
Erases one stored message of the account through the cascade a stored message's erasure runs.
- EraseMailOfErasedFoldersAsync(IPersistenceSession, MailAccountId, int, CancellationToken)
Erases, through the cascade a stored message's erasure runs, up to a bound of the messages in the account's erased folders.
- PlaceAsync(IPersistenceSession, MailAccountId, StoredEmailId, LocalMailFolderId, CancellationToken)
Places a stored message in a local folder, unless it is already in one.
- ReadAsync(IPersistenceSession, MailAccountId, CancellationToken)
Reads the account's phase and folders inside the transaction a write will commit.
- ReadAsync(MailAccountId, CancellationToken)
Reads the account's phase and folders, joining no transaction.