Table of Contents

Interface IRemoteFolderEditor

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

Renames or deletes one folder of a mailbox, and can do nothing else to it.

public interface IRemoteFolderEditor

Remarks

The name states the port's whole surface, exactly as IRemoteFolderCreator's does. There is no method here that files a message, flags one, subscribes to a folder, or unsubscribes from one, and a fifth act against a mailbox's shape is a decision to reopen ADR 0007 rather than a method to append here.

It is a port beside the creator rather than four methods on one, for the separation ADR 0007's option B1 bought and this tier keeps: a component that can file a message into a folder cannot make one, and a component that can make one cannot relocate, delete, flag, or copy a message. Renaming and deleting sit together because they are one requester's pair — the client's folder surface needs both or neither — and because a move is a rename on IMAP, so splitting them would divide one command between two ports.

No second connection is opened. Both acts are issued over the account's single write connection, the same one a creation uses, so an account still holds at most one connection able to change its mailbox.

Nothing reaches this port from configuration binding, from mail content, from a tool argument, or from model output. A path arrives here because a signed-in person asked for a folder of their own account to be renamed or deleted, under mailfathom.mail.folders.write, which is the input class ADR 0007's axis L turns on.

Methods

DeleteFolderAsync(MailAccountId, MailFolderAlias, RemoteFolderPath, MailTransportSecurityPolicy, CancellationToken)

Deletes a folder, with whatever the server holds in it.

RenameFolderAsync(MailAccountId, MailFolderAlias, RemoteFolderPath, RemoteFolderPath?, string, MailTransportSecurityPolicy, CancellationToken)

Renames a folder, which is also how it is moved to another place in the hierarchy.