Class LocalMailFolderEditor
- Namespace
- MailFathom.Application.Folders.Local
- Assembly
- MailFathom.Application.dll
Reads, creates, renames, moves, and deletes the folders of the caller's own accounts whose mailbox MailFathom holds.
public sealed class LocalMailFolderEditor
- Inheritance
-
LocalMailFolderEditor
- Inherited Members
Remarks
Every act is refused on an account whose mailbox is not held, whatever grant the caller carries: a mirrored account's folders are the source server's, and ADR 0007 still governs those. No act reaches a mail server.
The five protected folders are supplied in the same transaction as the first read or act that finds them missing, so a held account is never listed without them, the hierarchy an act is decided against always has them, and a refused act writes nothing at all.
Constructors
- LocalMailFolderEditor(ILocalMailFolderStore, OptimisticConcurrencyRetryPolicy, ILocalMailFolderChangeAuditor, ClientSignals, IJobStore, AccessAuthorization, TimeProvider)
Initializes a new instance of the LocalMailFolderEditor class.
Methods
- DeleteAsync(MailAccountId, LocalMailFolderId, CancellationToken)
Deletes a folder: into the trash, or, where it is already there, out of existence with all of its mail.
- MoveAsync(MailAccountId, LocalMailFolderId, LocalMailFolderId?, CancellationToken)
Moves a folder, with everything beneath it, to another place in the hierarchy.
- ReadAsync(MailAccountId, CancellationToken)
Reads the caller's account's phase and live folders, supplying the protected folders a held account lacks.