Enum MailFolderSpecialUse
- Namespace
- MailFathom.Domain.Folders
- Assembly
- MailFathom.Domain.dll
Names the role a folder plays for its account, independently of what its server calls the folder.
public enum MailFolderSpecialUse
Fields
All = 6The virtual folder presenting every message in the account.
Archive = 1The folder holding messages the user archived.
Drafts = 2The folder holding unsent drafts.
Flagged = 7The virtual folder presenting flagged messages.
Important = 8The virtual folder presenting messages the server considers important.
Inbox = 0The mailbox every IMAP server exposes for incoming mail.
Junk = 4The folder holding messages classified as spam.
Outbox = 9The folder an operator chose to see this account's undelivered outgoing mail in.
The one role here that is MailFathom's rather than the server's. RFC 6154 publishes no
\Outboxattribute, because the outbox a mail client shows is that client's own local queue of what it has not managed to send yet — so no folder ever reports this role and discovery can never find one. It is a label on a folder an operator mapped by path, and a mapping naming it as its target is refused where configuration binds.A deployment that maps it gets a copy of each outgoing message that is waiting, marked
\Draftand withdrawn when the message leaves. A deployment that does not — which is every deployment that says nothing — gets no copy at all, and a provider folder merely named like an outbox is never written into: what decides the destination is this role, never a name.Sent = 3The folder holding sent messages.
Trash = 5The folder holding deleted messages.
Remarks
Most of the roles mirror the special-use attributes of RFC 6154 and the inbox RFC 3501 mandates. Mapping an alias onto one of those is what lets an account whose server names its folders in another language synchronize without an operator writing a server-specific path into configuration.
Outbox is the exception and is MailFathom's own. No server advertises it, so it is a label an operator puts on a folder they chose rather than a way of finding one, and a mapping that names it as its target resolves to nothing by construction.