Property SpecialUse
- Namespace
- MailFathom.Domain.Folders
- Assembly
- MailFathom.Domain.dll
SpecialUse
Gets the role the folder plays for its account, and null for a folder configuration gives none.
public MailFolderSpecialUse? SpecialUse { get; }
Property Value
Remarks
It is a property of the folder rather than a way of finding it. A mapping naming a role alone carries it for both
purposes, which is what such a mapping has always meant; a mapping naming a path may carry one as well, which is
how a folder whose server advertises no attribute for it — INBOX.Spam on a server that never says
\Junk — is still the folder a feature asking for this account's junk mail is given.
A role is unique within an account, so at most one mapping of an account carries any given value. Nothing here enforces that, because one mapping cannot see its siblings: it is refused where the account's folders are read together, which is when configuration binds.