Table of Contents

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 = 6

The virtual folder presenting every message in the account.

Archive = 1

The folder holding messages the user archived.

Drafts = 2

The folder holding unsent drafts.

Flagged = 7

The virtual folder presenting flagged messages.

Important = 8

The virtual folder presenting messages the server considers important.

Inbox = 0

The mailbox every IMAP server exposes for incoming mail.

Junk = 4

The folder holding messages classified as spam.

Outbox = 9

The 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 \Outbox attribute, 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 \Draft and 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 = 3

The folder holding sent messages.

Trash = 5

The 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.