• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class ImapServerCapabilities

Extensions advertised by the IMAP server in its CAPABILITY response (RFC 9051 §6.1.1). Immutable.

Inheritance
object
ImapServerCapabilities
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Mail.Rfc.Imap
Assembly: DRIT.Mail.dll
Syntax
public sealed class ImapServerCapabilities

Constructors

View Source

ImapServerCapabilities(bool, bool, bool, bool, bool, bool, bool, bool, IReadOnlyCollection<string>, IReadOnlyCollection<string>)

Initializes a new instance of the ImapServerCapabilities class.

Declaration
public ImapServerCapabilities(bool supportsImap4Rev2, bool supportsImap4Rev1, bool supportsStartTls, bool supportsIdle, bool supportsMove, bool supportsChildren, bool supportsNamespace, bool supportsUidPlus, IReadOnlyCollection<string> saslMechanisms, IReadOnlyCollection<string> all)
Parameters
Type Name Description
bool supportsImap4Rev2
bool supportsImap4Rev1
bool supportsStartTls
bool supportsIdle
bool supportsMove
bool supportsChildren
bool supportsNamespace
bool supportsUidPlus
IReadOnlyCollection<string> saslMechanisms
IReadOnlyCollection<string> all

Properties

View Source

All

Gets all raw capability tokens advertised by the server.

Declaration
public IReadOnlyCollection<string> All { get; }
Property Value
Type Description
IReadOnlyCollection<string>
View Source

Empty

Gets an empty capabilities instance, used before the CAPABILITY response has been received.

Declaration
public static ImapServerCapabilities Empty { get; }
Property Value
Type Description
ImapServerCapabilities
View Source

SaslMechanisms

Gets the SASL authentication mechanisms advertised by the server (AUTH= capability tokens), upper-cased.

Declaration
public IReadOnlyCollection<string> SaslMechanisms { get; }
Property Value
Type Description
IReadOnlyCollection<string>
View Source

SupportsChildren

Gets a value indicating whether the server supports the CHILDREN extension (RFC 3348).

Declaration
public bool SupportsChildren { get; }
Property Value
Type Description
bool
View Source

SupportsIdle

Gets a value indicating whether the server supports the IDLE extension (RFC 2177).

Declaration
public bool SupportsIdle { get; }
Property Value
Type Description
bool
View Source

SupportsImap4Rev1

Gets a value indicating whether the server supports IMAP4rev1 (RFC 3501).

Declaration
public bool SupportsImap4Rev1 { get; }
Property Value
Type Description
bool
View Source

SupportsImap4Rev2

Gets a value indicating whether the server supports IMAP4rev2 (RFC 9051).

Declaration
public bool SupportsImap4Rev2 { get; }
Property Value
Type Description
bool
View Source

SupportsMove

Gets a value indicating whether the server supports the MOVE extension (RFC 6851).

Declaration
public bool SupportsMove { get; }
Property Value
Type Description
bool
View Source

SupportsNamespace

Gets a value indicating whether the server supports the NAMESPACE extension (RFC 2342).

Declaration
public bool SupportsNamespace { get; }
Property Value
Type Description
bool
View Source

SupportsStartTls

Gets a value indicating whether the server supports the STARTTLS extension (RFC 9051 §6.2.1).

Declaration
public bool SupportsStartTls { get; }
Property Value
Type Description
bool
View Source

SupportsUidPlus

Gets a value indicating whether the server supports the UIDPLUS extension (RFC 4315).

Declaration
public bool SupportsUidPlus { get; }
Property Value
Type Description
bool

Methods

View Source

Parse(string)

Parses a CAPABILITY untagged response line into an ImapServerCapabilities instance.

Declaration
public static ImapServerCapabilities Parse(string capabilityText)
Parameters
Type Name Description
string capabilityText

The text after * CAPABILITY in the response line.

Returns
Type Description
ImapServerCapabilities

The parsed capabilities.

  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX