The ImapClient type exposes the following members.

Constructors

  NameDescription
Public methodImapClient(String, Int32, Boolean, RemoteCertificateValidationCallback)
Initializes a new instance of the ImapClient class and connects to the specified port on the specified host, optionally using the Secure Socket Layer (SSL) security protocol.
Public methodImapClient(String, Int32, String, String, AuthMethod, Boolean, RemoteCertificateValidationCallback)
Initializes a new instance of the ImapClient class and connects to the specified port on the specified host, optionally using the Secure Socket Layer (SSL) security protocol and attempts to authenticate with the server using the specified authentication method and credentials.

Methods

  NameDescription
Public methodAddMessageFlags
Adds the specified set of IMAP message flags to the existing flag attributes of the mail message with the specified unique identifier (UID).
Public methodCapabilities
Returns an enumerable collection of capabilities the IMAP server supports. All strings in the returned collection are guaranteed to be upper-case.
Public methodCopyMessage
Copies the mail message with the specified UID to the specified destination mailbox.
Public methodCopyMessages
Copies the mail messages with the specified UIDs to the specified destination mailbox.
Public methodCreateMailbox
Creates a new mailbox with the specified name.
Public methodDeleteMailbox
Permanently removes the specified mailbox.
Public methodDeleteMessage
Deletes the mail message with the specified UID.
Public methodDeleteMessages
Deletes the mail messages with the specified UIDs.
Public methodDispose()()()()
Releases all resources used by the current instance of the ImapClient class.
Protected methodDispose(Boolean)
Releases all resources used by the current instance of the ImapClient class, optionally disposing of managed resource.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExpunge
Permanently removes all messages that have the \Deleted flag set from the specified mailbox.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetMailboxInfo
Retrieves status information (total number of messages, various attributes as well as quota information) for the specified mailbox.
Public methodGetMessage(UInt32, Boolean, String)
Retrieves the mail message with the specified unique identifier (UID).
Public methodGetMessage(UInt32, ExaminePartDelegate, Boolean, String)
Retrieves the mail message with the specified unique identifier (UID) while only fetching those parts of the message that satisfy the condition of the specified delegate.
Public methodGetMessage(UInt32, FetchOptions, Boolean, String)
Retrieves the mail message with the specified unique identifier (UID) using the specified fetch-option.
Public methodGetMessageFlags
Retrieves the IMAP message flag attributes for the mail message with the specified unique identifier (UID).
Public methodGetMessages(IEnumerable<(Of <<'(UInt32>)>>), Boolean, String)
Retrieves the set of mail messages with the specified unique identifiers (UIDs).
Public methodGetMessages(IEnumerable<(Of <<'(UInt32>)>>), ExaminePartDelegate, Boolean, String)
Retrieves the set of mail messages with the specified unique identifiers (UIDs) while only fetching those parts of the messages that satisfy the condition of the specified delegate.
Public methodGetMessages(IEnumerable<(Of <<'(UInt32>)>>), FetchOptions, Boolean, String)
Retrieves the set of mail messages with the specified unique identifiers (UIDs) using the specified fetch-option.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodListMailboxes
Retrieves a list of all available and selectable mailboxes on the server.
Public methodLogin
Attempts to establish an authenticated session with the server using the specified credentials.
Public methodLogout
Logs an authenticated client out of the server. After the logout sequence has been completed, the server closes the connection with the client.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMoveMessage
Moves the mail message with the specified UID to the specified destination mailbox.
Public methodMoveMessages
Moves the mail messages with the specified UIDs to the specified destination mailbox.
Public methodRemoveMessageFlags
Removes the specified set of IMAP message flags from the existing flag attributes of the mail message with the specified unique identifier (UID).
Public methodRenameMailbox
Changes the name of the specified mailbox.
Public methodSearch
Searches the specified mailbox for messages that match the given search criteria.
Public methodSetMessageFlags
Sets the IMAP message flag attributes for the mail message with the specified unique identifier (UID).
Public methodStoreMessage
Stores the specified mail message on the IMAP server.
Public methodStoreMessages
Stores the specified mail messages on the IMAP server.
Public methodSupports
Determines whether the specified capability is supported by the server.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties

  NameDescription
Public propertyAuthed
Determines whether the client is authenticated with the server.
Public propertyDefaultMailbox
The default mailbox to operate on.

Events

  NameDescription
Public eventIdleError
The event that is raised when an I/O exception occurs in the idle-thread.
Public eventMessageDeleted
The event that is raised when a message has been deleted on the server.
Public eventNewMessage
The event that is raised when a new mail message has been received by the server.

See Also