Class ImapFolder
Information about a single IMAP mailbox/folder as returned by LIST or LSUB (RFC 9051 §6.3.8–§6.3.9). Immutable.
Inherited Members
Namespace: DRIT.Mail.Rfc.Imap
Assembly: DRIT.Mail.dll
Syntax
public sealed class ImapFolder
Constructors
View SourceImapFolder(string, string, ImapFolderFlags)
Initializes a new instance of the ImapFolder class.
Declaration
public ImapFolder(string name, string delimiter, ImapFolderFlags flags)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The decoded mailbox name. |
| string | delimiter | The hierarchy separator character. |
| ImapFolderFlags | flags | The folder flags from the LIST response. |
Properties
View SourceDelimiter
Gets the hierarchy separator character (usually . or
/), or empty if not advertised.
Declaration
public string Delimiter { get; }
Property Value
| Type | Description |
|---|---|
| string |
Flags
Gets the folder flags (\Marked, \Noselect, \HasChildren, etc.).
Declaration
public ImapFolderFlags Flags { get; }
Property Value
| Type | Description |
|---|---|
| ImapFolderFlags |
Name
Gets the decoded mailbox name (modified UTF-7 decoded).
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |