Table of Contents

Constructor MailFolderManagement

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

MailFolderManagement(IReadOnlyList<MailFolderAct>, IReadOnlyList<MailFolderSpecialUse>, IReadOnlyList<ManagedMailFolder>)

What one account's folders are and what may be done to them.

public MailFolderManagement(IReadOnlyList<MailFolderAct> AllowedActs, IReadOnlyList<MailFolderSpecialUse> CreatableRoles, IReadOnlyList<ManagedMailFolder> Folders)

Parameters

AllowedActs IReadOnlyList<MailFolderAct>

Which acts the account as a whole permits, which is Create or nothing.

CreatableRoles IReadOnlyList<MailFolderSpecialUse>

The roles the account has no folder for and which a creation may therefore name.

Folders IReadOnlyList<ManagedMailFolder>

The account's folders, ordered by name, each with the acts it allows.

Remarks

An account permits creating a folder or it does not, and the reasons it may not are its own rather than any folder's: its mailbox may be being restored to its source, the hierarchy may already hold as many folders as it takes, or a settings policy may hold its list of folders against the caller. Everything else is per folder, which is why the two are reported at the levels they belong to instead of one flag for the account.

The creatable roles are how a missing special folder is made: a person chooses the role and the service supplies the name, so a client never asks anybody to name their own trash folder. A role the account already has a folder for is absent from the list, because one account has at most one folder per role, and the list is empty wherever the account permits no creation at all.