The ImapClient type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | ImapClient(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.
|
![]() | ImapClient(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
Name | Description | |
---|---|---|
![]() | AddMessageFlags |
Adds the specified set of IMAP message flags to the existing flag attributes of the mail
message with the specified unique identifier (UID).
|
![]() | Capabilities |
Returns an enumerable collection of capabilities the IMAP server supports. All strings in
the returned collection are guaranteed to be upper-case.
|
![]() | CopyMessage |
Copies the mail message with the specified UID to the specified destination mailbox.
|
![]() | CopyMessages |
Copies the mail messages with the specified UIDs to the specified destination mailbox.
|
![]() | CreateMailbox |
Creates a new mailbox with the specified name.
|
![]() | DeleteMailbox |
Permanently removes the specified mailbox.
|
![]() | DeleteMessage |
Deletes the mail message with the specified UID.
|
![]() | DeleteMessages |
Deletes the mail messages with the specified UIDs.
|
![]() | Dispose()()()() |
Releases all resources used by the current instance of the ImapClient class.
|
![]() | Dispose(Boolean) |
Releases all resources used by the current instance of the ImapClient class, optionally
disposing of managed resource.
|
![]() | Equals | (Inherited from Object.) |
![]() | Expunge |
Permanently removes all messages that have the \Deleted flag set from the specified mailbox.
|
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetMailboxInfo |
Retrieves status information (total number of messages, various attributes as well as quota
information) for the specified mailbox. |
![]() | GetMessage(UInt32, Boolean, String) |
Retrieves the mail message with the specified unique identifier (UID).
|
![]() | GetMessage(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.
|
![]() | GetMessage(UInt32, FetchOptions, Boolean, String) |
Retrieves the mail message with the specified unique identifier (UID) using the specified
fetch-option.
|
![]() | GetMessageFlags |
Retrieves the IMAP message flag attributes for the mail message with the specified unique
identifier (UID).
|
![]() | GetMessages(IEnumerable<(Of <<'(UInt32>)>>), Boolean, String) |
Retrieves the set of mail messages with the specified unique identifiers (UIDs).
|
![]() | GetMessages(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.
|
![]() | GetMessages(IEnumerable<(Of <<'(UInt32>)>>), FetchOptions, Boolean, String) |
Retrieves the set of mail messages with the specified unique identifiers (UIDs) using the
specified fetch-option.
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | ListMailboxes |
Retrieves a list of all available and selectable mailboxes on the server.
|
![]() | Login |
Attempts to establish an authenticated session with the server using the specified
credentials.
|
![]() | Logout |
Logs an authenticated client out of the server. After the logout sequence has been completed,
the server closes the connection with the client.
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | MoveMessage |
Moves the mail message with the specified UID to the specified destination mailbox.
|
![]() | MoveMessages |
Moves the mail messages with the specified UIDs to the specified destination mailbox.
|
![]() | RemoveMessageFlags |
Removes the specified set of IMAP message flags from the existing flag attributes of the
mail message with the specified unique identifier (UID).
|
![]() | RenameMailbox |
Changes the name of the specified mailbox.
|
![]() | Search |
Searches the specified mailbox for messages that match the given search criteria.
|
![]() | SetMessageFlags |
Sets the IMAP message flag attributes for the mail message with the specified unique
identifier (UID).
|
![]() | StoreMessage |
Stores the specified mail message on the IMAP server.
|
![]() | StoreMessages |
Stores the specified mail messages on the IMAP server.
|
![]() | Supports |
Determines whether the specified capability is supported by the server.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
![]() | Authed |
Determines whether the client is authenticated with the server.
|
![]() | DefaultMailbox |
The default mailbox to operate on.
|
Events
Name | Description | |
---|---|---|
![]() | IdleError |
The event that is raised when an I/O exception occurs in the idle-thread.
|
![]() | MessageDeleted |
The event that is raised when a message has been deleted on the server.
|
![]() | NewMessage |
The event that is raised when a new mail message has been received by the server.
|