Imap Class
Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9119)
Provides methods for communication with IMAP servers. Supported IMAP versions are IMAP4 and IMAP4rev1.
Syntax
public class Imap : NetworkSession, ILogWriterProvider, IDisposable
Inherited Members
Remarks
All members of this class are thread-safe.
Constructors
Name | Description |
---|---|
Imap() | Initializes a new instance of the Imap class. |
Fields
Name | Description |
---|---|
DefaultImplicitSslPort | Default IMAP/Implicit SSL port (993). |
DefaultPort | Default IMAP port (143). |
Properties
Name | Description |
---|---|
AbortTimeout | Gets or sets the length of time before the abort operation times out. |
ClearTextLoginDisabled | Returns a value indicating whether the clear text login is disabled. Either use one of the more secure authentication methods, or upgrade to TLS/SSL if you wish to perform clear text login. |
CurrentFolder | Gets the ImapFolder object that represents the currently selected folder, or null if no folder is selected. |
DefaultLogWriter | Gets or sets a default log writer used by all new instances of NetworkSession object. Inherited from NetworkSession. |
EnabledExtensions | Gets or sets the bit field specifying the enabled extensions. |
Encoding | Gets or sets the Encoding to use to encode and decode command parameters and server responses. |
InstanceId | Gets instance ID (intended for logging purposes). Inherited from NetworkSession. |
IsAuthenticated | Returns a value indicating whether the session is authenticated. |
IsBusy | Gets a value indicating whether there is any operation (method) in progress. |
IsConnected | Gets a value indicating whether the session is connected. |
IsSecured | Gets the value indicating whether the control connection is secured. |
LocalEndPoint | Gets the local client EndPoint. |
LogWriter | Gets or sets the LogWriter used by this object. Inherited from NetworkSession. |
Proxy | Gets or sets the network proxy to use to access a remote server. |
RemoteEndPoint | Gets the remote server EndPoint. |
ServerName | Gets the server name, if available. Inherited from NetworkSession. |
ServerPort | Gets the server port, if available. Inherited from NetworkSession. |
Settings | Gets or sets IMAP object settings. |
State | Gets the current state of the Imap object. |
SupportedExtensions | Gets the bit field specifying the extensions supported by the server. |
Timeout | Gets or sets the length of time in milliseconds before the operation times out (specify -1 or 0 to indicate that the request does not time out). |
TlsSocket | Returns the TLS/SSL socket of secured control connection. |
UserName | Gets the authenticated user name, if available. Inherited from NetworkSession. |
Version | Returns the version of the SMTP component. |
Methods
Name | Description |
---|---|
Abort() | Aborts the current operation. |
CheckConnectionState() | Checks whether the IMAP session is still connected. Throws an exception on error. |
CheckForUpdates() | Processes server notifications. |
CheckForUpdates(Int32) | Processes server notifications for the specified amount of time. |
CheckForUpdatesAsync(Int32, Object) | Begins asynchronous CheckForUpdates operation. Processes server notifications for the specified amount of time. |
CheckForUpdatesAsync(Object) | Begins asynchronous CheckForUpdates operation. Processes server notifications. |
Connect(String) | Connects to the IMAP server. |
Connect(String, SslMode) | Connects to the IMAP server. Use a port corresponding to the specified security mode. |
Connect(String, Int32) | Connects to the IMAP server. |
Connect(String, Int32, SslMode) | Connects to the IMAP server. |
ConnectAsync(String, SslMode, Object) | Begins asynchronous Connect operation. Connects to the IMAP server. Use a port corresponding to the specified security mode. |
ConnectAsync(String, Int32, SslMode, Object) | Begins asynchronous Connect operation. Connects to the IMAP server. |
ConnectAsync(String, Int32, Object) | Begins asynchronous Connect operation. Connects to the IMAP server. |
ConnectAsync(String, Object) | Begins asynchronous Connect operation. Connects to the IMAP server. |
CopyMessage(ImapMessageSet, String) | Copies messages from the current folder that belong to a specified message set to the specified folder. |
CopyMessage(Int32, String) | Copies a message with the specified sequence number to the specified folder. |
CopyMessage(String, String) | Copies a message with the specified unique ID to the specified folder. |
CopyMessageAsync(ImapMessageSet, String, Object) | Begins asynchronous CopyMessage operation. Copies messages from the current folder that belong to a specified message set to the specified folder. |
CopyMessageAsync(Int32, String, Object) | Begins asynchronous CopyMessage operation. Copies a message with the specified sequence number to the specified folder. |
CopyMessageAsync(String, String, Object) | Begins asynchronous CopyMessage operation. Copies a message with the specified unique ID to the specified folder. |
CreateFolder(String) | Creates a folder with the specified name. |
CreateFolderAsync(String, Object) | Begins asynchronous CreateFolder operation. Creates a folder with the specified name. |
DeleteFolder(String) | Deletes a folder with the specified name. |
DeleteFolderAsync(String, Object) | Begins asynchronous DeleteFolder operation. Deletes a folder with the specified name. |
DeleteMessage(ImapMessageSet) | Marks messages that belong to a specified message set as deleted. |
DeleteMessage(Int32) | Marks a message with the specified sequence number as deleted. |
DeleteMessage(String) | Marks a message with the specified unique ID as deleted. |
DeleteMessageAsync(ImapMessageSet, Object) | Begins asynchronous DeleteMessage operation. Marks messages that belong to a specified message set as deleted. |
DeleteMessageAsync(Int32, Object) | Begins asynchronous DeleteMessage operation. Marks a message with the specified sequence number as deleted. |
DeleteMessageAsync(String, Object) | Begins asynchronous DeleteMessage operation. Marks a message with the specified unique ID as deleted. |
Disconnect() | Disconnects from the IMAP server. |
DisconnectAsync(Object) | Begins asynchronous Disconnect operation. Disconnects from the IMAP server. |
Dispose() | Disposes the Imap object and all the socket objects. |
Dispose(Boolean) | Releases the unmanaged resources used by the Imap and optionally releases the managed resources. |
Finalize() | Finalizer. Called by garbage collector during object destruction. |
FolderExists(String) | Detects whether the specified folder exists on the server. Not all IMAP servers support this! |
FolderExistsAsync(String, Object) | Begins asynchronous FolderExists operation. Detects whether the specified folder exists on the server. Not all IMAP servers support this! |
GetConnectionState() | Checks whether the IMAP session is still connected and returns its state. |
GetFolderInfo(String) | Returns information about the specified folder without selecting it. |
GetFolderInfoAsync(String, Object) | Begins asynchronous GetFolderInfo operation. Returns information about the specified folder without selecting it. |
GetFolderList() | Gets the list of root subfolders. |
GetFolderList(String) | Gets the list of subfolders in the specified folder. |
GetFolderList(String, ImapFolderListMode) | Gets the list of subfolders in the specified folder. |
GetFolderList(String, ImapFolderListMode, Boolean) | Gets the list of subfolders in the specified folder. |
GetFolderListAsync(String, ImapFolderListMode, Boolean, Object) | Begins asynchronous GetFolderList operation. Gets the list of subfolders in the specified folder. |
GetHashCode() | Gets hash code for this object. Inherited from NetworkSession. |
GetMailMessage(Int32) | Downloads the message with the specified sequence number and loads it into an instance of MailMessage. |
GetMailMessage(String) | Downloads the message with the specified unique ID and loads it into an instance of MailMessage. |
GetMailMessageAsync(Int32, Object) | Begins asynchronous GetMailMessage operation. Downloads the message with the specified sequence number and loads it into an instance of MailMessage. |
GetMailMessageAsync(String, Object) | Begins asynchronous GetMailMessage operation. Downloads the message with the specified unique ID and loads it into an instance of MailMessage. |
GetMessage(Int32, Stream) | Downloads the message with the specified sequence number and writes its data into a supplied stream. |
GetMessage(Int32, Stream, Int64, Int32) | Downloads the specified part of the message with the specified sequence number and writes its data into a supplied stream. |
GetMessage(Int32, String) | Downloads the message with the specified sequence number and writes its data into a local file. |
GetMessage(Int32, String, Int64, Int32) | Downloads the message with the specified sequence number and writes its data into a local file. |
GetMessage(String, Stream) | Downloads the message with the specified unique ID and writes its data into a supplied stream. |
GetMessage(String, Stream, Int64, Int32) | Downloads the specified part of the message with the specified unique ID and writes its data into a supplied stream. |
GetMessage(String, String) | Downloads the message with the specified unique ID and writes its data into a local file. |
GetMessage(String, String, Int64, Int32) | Downloads the message with the specified unique ID and writes its data into a local file. |
GetMessageAsync(Int32, Stream, Int64, Int32, Object) | Begins asynchronous GetMessage operation. Downloads the specified part of the message with the specified sequence number and writes its data into a supplied stream. |
GetMessageAsync(Int32, Stream, Object) | Begins asynchronous GetMessage operation. Downloads the message with the specified sequence number and writes its data into a supplied stream. |
GetMessageAsync(Int32, String, Int64, Int32, Object) | Begins asynchronous GetMessage operation. Downloads the message with the specified sequence number and writes its data into a local file. |
GetMessageAsync(Int32, String, Object) | Begins asynchronous GetMessage operation. Downloads the message with the specified sequence number and writes its data into a local file. |
GetMessageAsync(String, Stream, Int64, Int32, Object) | Begins asynchronous GetMessage operation. Downloads the specified part of the message with the specified unique ID and writes its data into a supplied stream. |
GetMessageAsync(String, Stream, Object) | Begins asynchronous GetMessage operation. Downloads the message with the specified unique ID and writes its data into a supplied stream. |
GetMessageAsync(String, String, Int64, Int32, Object) | Begins asynchronous GetMessage operation. Downloads the message with the specified unique ID and writes its data into a local file. |
GetMessageAsync(String, String, Object) | Begins asynchronous GetMessage operation. Downloads the message with the specified unique ID and writes its data into a local file. |
GetMessageHeaders(Int32, Stream) | Downloads the headers of a message with the specified sequence number and writes it into a supplied stream. |
GetMessageHeaders(String, Stream) | Downloads the headers of a message with the specified unique ID and writes it into a supplied stream. |
GetMessageHeadersAsync(Int32, Stream, Object) | Begins asynchronous GetMessageHeaders operation. Downloads the headers of a message with the specified sequence number and writes it into a supplied stream. |
GetMessageHeadersAsync(String, Stream, Object) | Begins asynchronous GetMessageHeaders operation. Downloads the headers of a message with the specified unique ID and writes it into a supplied stream. |
GetMessageInfo(Int32, ImapListFields) | Gets information about a message with the specified sequence number. |
GetMessageInfo(String, ImapListFields) | Gets information about a message with the specified unique ID |
GetMessageInfoAsync(Int32, ImapListFields, Object) | Begins asynchronous GetMessageInfo operation. Gets information about a message with the specified sequence number. |
GetMessageInfoAsync(String, ImapListFields, Object) | Begins asynchronous GetMessageInfo operation. Gets information about a message with the specified unique ID |
GetMessageList() | Gets the list of messages in the current folder. |
GetMessageList(ImapListFields) | Gets the list of messages in the current folder. |
GetMessageList(ImapMessageSet) | Gets the list of messages in the current folder that belong to a specified message set. |
GetMessageList(ImapMessageSet, ImapListFields) | Gets the list of messages in the current folder that belong to a specified message set. |
GetMessageList(ImapMessageSet, ImapListFields, ImapPageView) | Gets the list of messages in the current folder that belong to a specified message set. |
GetMessageListAsync(ImapListFields, Object) | Begins asynchronous GetMessageList operation. Gets the list of messages in the current folder. |
GetMessageListAsync(ImapMessageSet, ImapListFields, ImapPageView, Object) | Begins asynchronous GetMessageList operation. Gets the list of messages in the current folder that belong to a specified message set. |
GetMessageListAsync(ImapMessageSet, ImapListFields, Object) | Begins asynchronous GetMessageList operation. Gets the list of messages in the current folder that belong to a specified message set. |
GetMessagePart(Int32, String) | Downloads the specified part of the message. Used to download separate attachments. Call GetMessageInfo(String, ImapListFields) with ImapListFields.MessageStructure argument to download the list of sections and access it using GetParts() method. |
GetMessagePart(Int32, String, Stream) | Downloads the specified part of the message into the specified stream. Used to download separate attachments. Call GetMessageInfo(String, ImapListFields) with ImapListFields.MessageStructure argument to download the list of sections and access it using GetParts() method. |
GetMessagePart(String, String) | Downloads the specified part of the message. Used to download separate attachments. Call GetMessageInfo(String, ImapListFields) with ImapListFields.MessageStructure argument to download the list of sections and access it using GetParts() method. |
GetMessagePart(String, String, Stream) | Downloads the specified part of the message into the specified stream. Used to download separate attachments. Call GetMessageInfo(String, ImapListFields) with ImapListFields.MessageStructure argument to download the list of sections and access it using GetParts() method. |
GetMessagePartAsync(Int32, String, Stream, Object) | Begins asynchronous GetMessagePart operation. Downloads the specified part of the message into the specified stream. Used to download separate attachments. Call GetMessageInfo(String, ImapListFields) with ImapListFields.MessageStructure argument to download the list of sections and access it using GetParts() method. |
GetMessagePartAsync(Int32, String, Object) | Begins asynchronous GetMessagePart operation. Downloads the specified part of the message. Used to download separate attachments. Call GetMessageInfo(String, ImapListFields) with ImapListFields.MessageStructure argument to download the list of sections and access it using GetParts() method. |
GetMessagePartAsync(String, String, Stream, Object) | Begins asynchronous GetMessagePart operation. Downloads the specified part of the message into the specified stream. Used to download separate attachments. Call GetMessageInfo(String, ImapListFields) with ImapListFields.MessageStructure argument to download the list of sections and access it using GetParts() method. |
GetMessagePartAsync(String, String, Object) | Begins asynchronous GetMessagePart operation. Downloads the specified part of the message. Used to download separate attachments. Call GetMessageInfo(String, ImapListFields) with ImapListFields.MessageStructure argument to download the list of sections and access it using GetParts() method. |
GetMessages(ImapMessageSet, ImapListFields, Action<ImapMessage>) | Downloads messages in the current folder that belong to a specified message set. |
GetMessages(ImapMessageSet, Action<ImapMessage>) | Downloads messages in the current folder that belong to a specified message set. |
GetMessagesAsync(ImapMessageSet, ImapListFields, Action<ImapMessage>, Object) | Begins asynchronous GetMessages operation. Downloads messages in the current folder that belong to a specified message set. |
GetMimeMessage(Int32) | Downloads the message with the specified sequence number and loads it into an instance of MimeMessage. |
GetMimeMessage(String) | Downloads the message with the specified unique ID and loads it into an instance of MimeMessage. |
GetMimeMessageAsync(Int32, Object) | Begins asynchronous GetMimeMessage operation. Downloads the message with the specified sequence number and loads it into an instance of MimeMessage. |
GetMimeMessageAsync(String, Object) | Begins asynchronous GetMimeMessage operation. Downloads the message with the specified unique ID and loads it into an instance of MimeMessage. |
GetSupportedAuthenticationMethods() | Gets the list of supported authentication methods. |
Login(GssApiProvider) | Authenticates the user to the IMAP server using the specified GSSAPI provider. Only supported on Windows and partially on Mono. |
Login(ImapAuthentication) | Authenticates the user to the IMAP server using the specified authentication method that does not require credentials (NTLM, GSSAPI or EXTERNAL). Only supported on Windows. |
Login(String, ImapAuthentication) | Authenticates the user to the IMAP server using an OAuth token. |
Login(String, String) | Authenticates the user to the IMAP server using the specified authentication method. |
Login(String, String, ImapAuthentication) | Authenticates the user to the IMAP server using the specified authentication method. |
LoginAsync(GssApiProvider, Object) | Begins asynchronous Login operation. Authenticates the user to the IMAP server using the specified GSSAPI provider. Only supported on Windows and partially on Mono. |
LoginAsync(ImapAuthentication, Object) | Begins asynchronous Login operation. Authenticates the user to the IMAP server using the specified authentication method that does not require credentials (NTLM, GSSAPI or EXTERNAL). Only supported on Windows. |
LoginAsync(String, ImapAuthentication, Object) | Begins asynchronous Login operation. Authenticates the user to the IMAP server using an OAuth token. |
LoginAsync(String, String, ImapAuthentication, Object) | Begins asynchronous Login operation. Authenticates the user to the IMAP server using the specified authentication method. |
LoginAsync(String, String, Object) | Begins asynchronous Login operation. Authenticates the user to the IMAP server using the specified authentication method. |
OnCommandSent(ImapCommandSentEventArgs) | Raises the CommandSent event. |
OnNotification(ImapNotificationEventArgs) | Raises the Notification event. |
OnResponseRead(ImapResponseReadEventArgs) | Raises the ResponseRead event. |
OnStateChanged(ImapStateChangedEventArgs) | Raises the StateChanged event. |
OnTransferProgress(ImapTransferProgressEventArgs) | Raises the TransferProgress event. |
Purge() | Permanently removes all messages marked as deleted (with a Deleted flag) from the current folder. |
Purge(ImapMessageSet) | Permanently removes all messages marked as deleted (with a Deleted flag) from the current folder. |
PurgeAsync(ImapMessageSet, Object) | Begins asynchronous Purge operation. Permanently removes all messages marked as deleted (with a Deleted flag) from the current folder. |
PurgeAsync(Object) | Begins asynchronous Purge operation. Permanently removes all messages marked as deleted (with a Deleted flag) from the current folder. |
ReadResponse() | Returns the response of the IMAP server to the command. |
ReadResponseAsync(Object) | Begins asynchronous ReadResponse operation. Returns the response of the IMAP server to the command. |
RenameFolder(String, String) | Renames a specified folder to a new name. |
RenameFolderAsync(String, String, Object) | Begins asynchronous RenameFolder operation. Renames a specified folder to a new name. |
RequestCheckpoint() | Requests a checkpoint of the currently selected mailbox. mailbox. |
RequestCheckpointAsync(Object) | Begins asynchronous RequestCheckpoint operation. Requests a checkpoint of the currently selected mailbox. mailbox. |
Search(ImapListFields, ImapSearchParameter[]) | Search the current folder for messages that match the specified searching criteria. |
Search(ImapMessageSet, ImapListFields, ImapPageView, ImapSearchParameter[]) | Search the current folder for messages that match the specified searching criteria. |
Search(ImapMessageSet, ImapListFields, ImapSearchParameter[]) | Search the current folder for messages that match the specified searching criteria. |
Search(ImapSearchParameter[]) | Search the current folder for messages that match the specified searching criteria. |
SearchAsync(ImapListFields, ImapSearchParameter[], Object) | Begins asynchronous Search operation. Search the current folder for messages that match the specified searching criteria. |
SearchAsync(ImapMessageSet, ImapListFields, ImapPageView, ImapSearchParameter[], Object) | Begins asynchronous Search operation. Search the current folder for messages that match the specified searching criteria. |
SearchAsync(ImapMessageSet, ImapListFields, ImapSearchParameter[], Object) | Begins asynchronous Search operation. Search the current folder for messages that match the specified searching criteria. |
Secure() | Secures the connection with TLS/SSL using default parameters. |
SecureAsync(Object) | Begins asynchronous Secure operation. Secures the connection with TLS/SSL using default parameters. |
SelectFolder(String) | Selects the specified folder so that its messages can be accessed. |
SelectFolder(String, Boolean) | Selects the specified folder so that its messages can be accessed. |
SelectFolderAsync(String, Boolean, Object) | Begins asynchronous SelectFolder operation. Selects the specified folder so that its messages can be accessed. |
SendCommand(String, Object[]) | Executes a command on the IMAP server. |
SendCommandAsync(String, Object[], Object) | Begins asynchronous SendCommand operation. Executes a command on the IMAP server. |
SetMessageFlags(ImapMessageSet, ImapFlagAction, ImapMessageFlags) | Modifies the flags of messages in the current folder that belong to a specified message set. |
SetMessageFlags(ImapMessageSet, ImapFlagAction, ImapMessageFlags, String[]) | Modifies the flags of messages in the current folder that belong to a specified message set. |
SetMessageFlags(Int32, ImapFlagAction, ImapMessageFlags) | Modifies the flags of a message with the specified sequence number. |
SetMessageFlags(Int32, ImapFlagAction, ImapMessageFlags, String[]) | Modifies the flags of a message with the specified sequence number. |
SetMessageFlags(String, ImapFlagAction, ImapMessageFlags) | Modifies the flags of a message with the specified unique ID. |
SetMessageFlags(String, ImapFlagAction, ImapMessageFlags, String[]) | Modifies the flags of a message with the specified unique ID. |
SetMessageFlagsAsync(ImapMessageSet, ImapFlagAction, ImapMessageFlags, String[], Object) | Begins asynchronous SetMessageFlags operation. Modifies the flags of messages in the current folder that belong to a specified message set. |
SetMessageFlagsAsync(Int32, ImapFlagAction, ImapMessageFlags, String[], Object) | Begins asynchronous SetMessageFlags operation. Modifies the flags of a message with the specified sequence number. |
SetMessageFlagsAsync(String, ImapFlagAction, ImapMessageFlags, String[], Object) | Begins asynchronous SetMessageFlags operation. Modifies the flags of a message with the specified unique ID. |
SetSocketFactory(ISocketFactory) | Sets the socket factory to be used to create communication sockets. |
StoreMessage(String, MailMessage) | Uploads the message to the specified folder. |
StoreMessage(String, MailMessage, ImapMessageFlags) | Uploads the message to the specified folder and sets its flags. |
StoreMessage(String, MailMessage, ImapMessageFlags, String[]) | Uploads the message to the specified folder and sets its flags. |
StoreMessage(String, MimeMessage) | Uploads the message to the specified folder. |
StoreMessage(String, MimeMessage, ImapMessageFlags) | Uploads the message to the specified folder and sets its flags. |
StoreMessage(String, MimeMessage, ImapMessageFlags, String[]) | Uploads the message to the specified folder and sets its flags. |
StoreMessage(String, Stream) | Uploads the message read from the stream to the specified folder and sets its flags. |
StoreMessage(String, Stream, ImapMessageFlags) | Uploads the message read from the stream to the specified folder and sets its flags. |
StoreMessage(String, Stream, ImapMessageFlags, String[]) | Uploads the message read from the stream to the specified folder and sets its flags. |
StoreMessage(String, String) | Uploads the message read from a local file and sets its flags. |
StoreMessage(String, String, ImapMessageFlags) | Uploads the message read from a local file and sets its flags. |
StoreMessage(String, String, ImapMessageFlags, String[]) | Uploads the message read from a local file and sets its flags. |
StoreMessage(String, String, String, String, String) | Uploads the message to the specified folder and sets its flags. |
StoreMessage(String, String, String, String, String, ImapMessageFlags) | Uploads the message to the specified folder and sets its flags. |
StoreMessage(String, String, String, String, String, ImapMessageFlags, String[]) | Uploads the message to the specified folder and sets its flags. |
StoreMessageAsync(String, MailMessage, ImapMessageFlags, String[], Object) | Begins asynchronous StoreMessage operation. Uploads the message to the specified folder and sets its flags. |
StoreMessageAsync(String, MimeMessage, ImapMessageFlags, Object) | Begins asynchronous StoreMessage operation. Uploads the message to the specified folder and sets its flags. |
StoreMessageAsync(String, MimeMessage, ImapMessageFlags, String[], Object) | Begins asynchronous StoreMessage operation. Uploads the message to the specified folder and sets its flags. |
StoreMessageAsync(String, Stream, ImapMessageFlags, String[], Object) | Begins asynchronous StoreMessage operation. Uploads the message read from the stream to the specified folder and sets its flags. |
StoreMessageAsync(String, String, ImapMessageFlags, String[], Object) | Begins asynchronous StoreMessage operation. Uploads the message read from a local file and sets its flags. |
StoreMessageAsync(String, String, String, String, String, ImapMessageFlags, String[], Object) | Begins asynchronous StoreMessage operation. Uploads the message to the specified folder and sets its flags. |
StoreRawMessage(String, Stream, ImapMessageFlags, MailDateTime) | Uploads the contents of the stream to the specified folder and sets its flags and date. |
StoreRawMessage(String, Stream, ImapMessageFlags, MailDateTime, String[]) | Uploads the contents of the stream to the specified folder and sets its flags and date. |
StoreRawMessageAsync(String, Stream, ImapMessageFlags, MailDateTime, String[], Object) | Begins asynchronous StoreRawMessage operation. Uploads the contents of the stream to the specified folder and sets its flags and date. |
Subscribe(String) | Subscribes to a specified folder, adding it to a list of active folders that appear in the folder listings with ImapFolderListMode set to Subscribed. |
SubscribeAsync(String, Object) | Begins asynchronous Subscribe operation. Subscribes to a specified folder, adding it to a list of active folders that appear in the folder listings with ImapFolderListMode set to Subscribed. |
ToString() | Returns a string representation of this object. |
UndeleteMessage() | Marks all messages as not deleted. |
UndeleteMessage(ImapMessageSet) | Marks messages that belong to a specified message set as not deleted. |
UndeleteMessage(Int32) | Marks a message with the specified sequence number as not deleted. |
UndeleteMessage(String) | Marks a message with the specified unique ID as not deleted. |
UndeleteMessageAsync(ImapMessageSet, Object) | Begins asynchronous UndeleteMessage operation. Marks messages that belong to a specified message set as not deleted. |
UndeleteMessageAsync(Int32, Object) | Begins asynchronous UndeleteMessage operation. Marks a message with the specified sequence number as not deleted. |
UndeleteMessageAsync(String, Object) | Begins asynchronous UndeleteMessage operation. Marks a message with the specified unique ID as not deleted. |
UnselectFolder() | Unselects the currently selected folder. Messages marked as deleted (with a Deleted flag) are not permanently removed. To remove them, use UnselectFolder(Boolean) or Purge() method. |
UnselectFolder(Boolean) | Unselects the currently selected folder and optionally permanently removes all messages marked as deleted (with a Deleted flag) from the current folder. |
UnselectFolderAsync(Boolean, Object) | Begins asynchronous UnselectFolder operation. Unselects the currently selected folder and optionally permanently removes all messages marked as deleted (with a Deleted flag) from the current folder. |
UnselectFolderAsync(Object) | Begins asynchronous UnselectFolder operation. Unselects the currently selected folder. Messages marked as deleted (with a Deleted flag) are not permanently removed. To remove them, use UnselectFolder(Boolean) or Purge() method. |
Unsubscribe(String) | Unsubscribes from a specified folder, removing it to a list of active folders that appear in the folder listings with ImapFolderListMode set to Subscribed. |
UnsubscribeAsync(String, Object) | Begins asynchronous Unsubscribe operation. Unsubscribes from a specified folder, removing it to a list of active folders that appear in the folder listings with ImapFolderListMode set to Subscribed. |
Events
Name | Description |
---|---|
CommandSent | Occurs when a command is send to the server. |
Notification | Occurs when a notification is received from the server. By sending notifications, the server informs connected clients about specific actions performed by either this client, by another connected session, or the server itself. |
ResponseRead | Occurs when a response is received from the server. |
StateChanged | Occurs when the state of the Imap object is changed. |
TransferProgress | Occurs when data is send or received. |
ValidatingCertificate | Occurs when a server certificate needs to be validated. |