The Imap type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Imap |
Initializes a new instance of the Imap class.
|
Methods
Name | Description | |
---|---|---|
Abort |
Aborts the current operation.
| |
BeginConnect(String, AsyncCallback, Object) |
Begins asynchronous Connect operation.
Connects to the IMAP server.
| |
BeginConnect(String, SslMode, AsyncCallback, Object) |
Begins asynchronous Connect operation.
Connects to the IMAP server. Use a port corresponding to the specified security mode.
| |
BeginConnect(String, Int32, AsyncCallback, Object) |
Begins asynchronous Connect operation.
Connects to the IMAP server.
| |
BeginConnect(String, Int32, SslMode, AsyncCallback, Object) |
Begins asynchronous Connect operation.
Connects to the IMAP server.
| |
BeginConnect(String, Int32, TlsParameters, ImapSecurity, AsyncCallback, Object) | Obsolete. | |
BeginCopyMessage(Int32, String, AsyncCallback, Object) |
Begins asynchronous CopyMessage operation.
Copies a message with the specified sequence number to the specified folder.
| |
BeginCopyMessage(String, String, AsyncCallback, Object) |
Begins asynchronous CopyMessage operation.
Copies a message with the specified unique ID to the specified folder.
| |
BeginCopyMessage(ImapMessageSet, String, AsyncCallback, Object) |
Begins asynchronous CopyMessage operation.
Copies messages from the current folder that belong to a specified message set to the specified folder.
| |
BeginCreateFolder |
Begins asynchronous CreateFolder operation.
Creates a folder with the specified name.
| |
BeginDeleteFolder |
Begins asynchronous DeleteFolder operation.
Deletes a folder with the specified name.
| |
BeginDeleteMessage(Int32, AsyncCallback, Object) |
Begins asynchronous DeleteMessage operation.
Marks a message with the specified sequence number as deleted.
| |
BeginDeleteMessage(String, AsyncCallback, Object) |
Begins asynchronous DeleteMessage operation.
Marks a message with the specified unique ID as deleted.
| |
BeginDeleteMessage(ImapMessageSet, AsyncCallback, Object) |
Begins asynchronous DeleteMessage operation.
Marks messages that belong to a specified message set as deleted.
| |
BeginDisconnect |
Begins asynchronous Disconnect operation.
Disconnects from the IMAP server.
| |
BeginFolderExists |
Begins asynchronous FolderExists operation.
Detects whether the specified folder exists on the server. Not all IMAP servers support this!
| |
BeginGetFolderInfo |
Begins asynchronous GetFolderInfo operation.
Returns information about the specified folder without selecting it.
| |
BeginGetFolderList |
Begins asynchronous GetFolderList operation.
Gets the list of subfolders in the specified folder.
| |
BeginGetMailMessage(Int32, AsyncCallback, Object) |
Begins asynchronous GetMailMessage operation.
Downloads the message with the specified sequence number
and loads it into an instance of MailMessage.
| |
BeginGetMailMessage(String, AsyncCallback, Object) |
Begins asynchronous GetMailMessage operation.
Downloads the message with the specified unique ID
and loads it into an instance of MailMessage.
| |
BeginGetMessage(Int32, Stream, AsyncCallback, Object) |
Begins asynchronous GetMessage operation.
Downloads the message with the specified sequence number
and writes its data into a supplied stream.
| |
BeginGetMessage(Int32, String, AsyncCallback, Object) |
Begins asynchronous GetMessage operation.
Downloads the message with the specified sequence number
and writes its data into a local file.
| |
BeginGetMessage(String, Stream, AsyncCallback, Object) |
Begins asynchronous GetMessage operation.
Downloads the message with the specified unique ID
and writes its data into a supplied stream.
| |
BeginGetMessage(String, String, AsyncCallback, Object) |
Begins asynchronous GetMessage operation.
Downloads the message with the specified unique ID
and writes its data into a local file.
| |
BeginGetMessage(Int32, Stream, Int64, Int32, AsyncCallback, 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.
| |
BeginGetMessage(Int32, String, Int64, Int32, AsyncCallback, Object) |
Begins asynchronous GetMessage operation.
Downloads the message with the specified sequence number
and writes its data into a local file.
| |
BeginGetMessage(String, Stream, Int64, Int32, AsyncCallback, 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.
| |
BeginGetMessage(String, String, Int64, Int32, AsyncCallback, Object) |
Begins asynchronous GetMessage operation.
Downloads the message with the specified unique ID
and writes its data into a local file.
| |
BeginGetMessageHeaders(Int32, Stream, AsyncCallback, Object) |
Begins asynchronous GetMessageHeaders operation.
Downloads the headers of a message with the specified sequence number
and writes it into a supplied stream.
| |
BeginGetMessageHeaders(String, Stream, AsyncCallback, Object) |
Begins asynchronous GetMessageHeaders operation.
Downloads the headers of a message with the specified unique ID
and writes it into a supplied stream.
| |
BeginGetMessageInfo(Int32, ImapListFields, AsyncCallback, Object) |
Begins asynchronous GetMessageInfo operation.
Gets information about a message with the specified sequence number.
| |
BeginGetMessageInfo(String, ImapListFields, AsyncCallback, Object) |
Begins asynchronous GetMessageInfo operation.
Gets information about a message with the specified unique ID
| |
BeginGetMessageList(ImapListFields, AsyncCallback, Object) |
Begins asynchronous GetMessageList operation.
Gets the list of messages in the current folder.
| |
BeginGetMessageList(ImapMessageSet, ImapListFields, AsyncCallback, Object) |
Begins asynchronous GetMessageList operation.
Gets the list of messages in the current folder that belong to a specified message set.
| |
BeginGetMessagePart(Int32, String, AsyncCallback, 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.
| |
BeginGetMessagePart(String, String, AsyncCallback, 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.
| |
BeginGetMessagePart(Int32, String, Stream, AsyncCallback, 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.
| |
BeginGetMessagePart(String, String, Stream, AsyncCallback, 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.
| |
BeginGetMessages |
Begins asynchronous GetMessages operation.
Downloads messages in the current folder that belong to a specified message set.
| |
BeginGetMimeMessage(Int32, AsyncCallback, Object) |
Begins asynchronous GetMimeMessage operation.
Downloads the message with the specified sequence number
and loads it into an instance of MimeMessage.
| |
BeginGetMimeMessage(String, AsyncCallback, Object) |
Begins asynchronous GetMimeMessage operation.
Downloads the message with the specified unique ID
and loads it into an instance of MimeMessage.
| |
BeginCheckForUpdates(AsyncCallback, Object) |
Begins asynchronous CheckForUpdates operation.
Processes server notifications.
| |
BeginCheckForUpdates(Int32, AsyncCallback, Object) |
Begins asynchronous CheckForUpdates operation.
Processes server notifications for the specified amount of time.
| |
BeginLogin(GssApiProvider, AsyncCallback, 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.
| |
BeginLogin(ImapAuthentication, AsyncCallback, 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.
| |
BeginLogin(String, ImapAuthentication, AsyncCallback, Object) |
Begins asynchronous Login operation.
Authenticates the user to the IMAP server using an OAuth token.
| |
BeginLogin(String, String, AsyncCallback, Object) |
Begins asynchronous Login operation.
Authenticates the user to the IMAP server using the specified authentication method.
| |
BeginLogin(String, String, ImapAuthentication, AsyncCallback, Object) |
Begins asynchronous Login operation.
Authenticates the user to the IMAP server using the specified authentication method.
| |
BeginPurge(AsyncCallback, Object) |
Begins asynchronous Purge operation.
Permanently removes all messages marked as deleted (with a Deleted flag)
from the current folder.
| |
BeginPurge(ImapMessageSet, AsyncCallback, Object) |
Begins asynchronous Purge operation.
Permanently removes all messages marked as deleted (with a Deleted flag)
from the current folder.
| |
BeginReadResponse |
Begins asynchronous ReadResponse operation.
Returns the response of the IMAP server to the command.
| |
BeginRenameFolder |
Begins asynchronous RenameFolder operation.
Renames a specified folder to a new name.
| |
BeginRequestCheckpoint |
Begins asynchronous RequestCheckpoint operation.
Requests a checkpoint of the currently selected mailbox.
mailbox.
| |
BeginSearch(ImapListFields, array<ImapSearchParameter>[]()[][], AsyncCallback, Object) |
Begins asynchronous Search operation.
Search the current folder for messages that match the specified searching criteria.
| |
BeginSearch(ImapMessageSet, ImapListFields, array<ImapSearchParameter>[]()[][], AsyncCallback, Object) |
Begins asynchronous Search operation.
Search the current folder for messages that match the specified searching criteria.
| |
BeginSecure(AsyncCallback, Object) |
Begins asynchronous Secure operation.
Secures the connection with TLS/SSL using default parameters.
| |
BeginSecure(TlsParameters, AsyncCallback, Object) | Obsolete. | |
BeginSelectFolder |
Begins asynchronous SelectFolder operation.
Selects the specified folder so that its messages can be accessed.
| |
BeginSendCommand |
Begins asynchronous SendCommand operation.
Executes a command on the IMAP server.
| |
BeginSetMessageFlags(Int32, ImapFlagAction, ImapMessageFlags, AsyncCallback, Object) |
Begins asynchronous SetMessageFlags operation.
Modifies the flags of a message with the specified sequence number.
| |
BeginSetMessageFlags(String, ImapFlagAction, ImapMessageFlags, AsyncCallback, Object) |
Begins asynchronous SetMessageFlags operation.
Modifies the flags of a message with the specified unique ID.
| |
BeginSetMessageFlags(ImapMessageSet, ImapFlagAction, ImapMessageFlags, AsyncCallback, Object) |
Begins asynchronous SetMessageFlags operation.
Modifies the flags of messages in the current folder that belong to a specified message set.
| |
BeginSetMessageFlags(Int32, ImapFlagAction, ImapMessageFlags, array<String>[]()[][], AsyncCallback, Object) |
Begins asynchronous SetMessageFlags operation.
Modifies the flags of a message with the specified sequence number.
| |
BeginSetMessageFlags(String, ImapFlagAction, ImapMessageFlags, array<String>[]()[][], AsyncCallback, Object) |
Begins asynchronous SetMessageFlags operation.
Modifies the flags of a message with the specified unique ID.
| |
BeginSetMessageFlags(ImapMessageSet, ImapFlagAction, ImapMessageFlags, array<String>[]()[][], AsyncCallback, Object) |
Begins asynchronous SetMessageFlags operation.
Modifies the flags of messages in the current folder that belong to a specified message set.
| |
BeginStoreMessage(String, MailMessage, ImapMessageFlags, AsyncCallback, Object) |
Begins asynchronous StoreMessage operation.
Uploads the message to the specified folder and sets its flags.
| |
BeginStoreMessage(String, MimeMessage, ImapMessageFlags, AsyncCallback, Object) |
Begins asynchronous StoreMessage operation.
Uploads the message to the specified folder and sets its flags.
| |
BeginStoreMessage(String, Stream, ImapMessageFlags, AsyncCallback, Object) |
Begins asynchronous StoreMessage operation.
Uploads the message read from the stream to the specified folder and sets its flags.
| |
BeginStoreMessage(String, String, ImapMessageFlags, AsyncCallback, Object) |
Begins asynchronous StoreMessage operation.
Uploads the message read from a local file and sets its flags.
| |
BeginStoreMessage(String, MailMessage, ImapMessageFlags, array<String>[]()[][], AsyncCallback, Object) |
Begins asynchronous StoreMessage operation.
Uploads the message to the specified folder and sets its flags.
| |
BeginStoreMessage(String, MimeMessage, ImapMessageFlags, array<String>[]()[][], AsyncCallback, Object) |
Begins asynchronous StoreMessage operation.
Uploads the message to the specified folder and sets its flags.
| |
BeginStoreMessage(String, Stream, ImapMessageFlags, array<String>[]()[][], AsyncCallback, Object) |
Begins asynchronous StoreMessage operation.
Uploads the message read from the stream to the specified folder and sets its flags.
| |
BeginStoreMessage(String, String, ImapMessageFlags, array<String>[]()[][], AsyncCallback, Object) |
Begins asynchronous StoreMessage operation.
Uploads the message read from a local file and sets its flags.
| |
BeginStoreMessage(String, String, String, String, String, ImapMessageFlags, AsyncCallback, Object) |
Begins asynchronous StoreMessage operation.
Uploads the message to the specified folder and sets its flags.
| |
BeginStoreMessage(String, String, String, String, String, ImapMessageFlags, array<String>[]()[][], AsyncCallback, Object) |
Begins asynchronous StoreMessage operation.
Uploads the message to the specified folder and sets its flags.
| |
BeginStoreRawMessage(String, Stream, ImapMessageFlags, MailDateTime, AsyncCallback, Object) |
Begins asynchronous StoreRawMessage operation.
Uploads the contents of the stream to the specified folder and sets its flags and date.
| |
BeginStoreRawMessage(String, Stream, ImapMessageFlags, MailDateTime, array<String>[]()[][], AsyncCallback, Object) |
Begins asynchronous StoreRawMessage operation.
Uploads the contents of the stream to the specified folder and sets its flags and date.
| |
BeginSubscribe |
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.
| |
BeginUndeleteMessage(Int32, AsyncCallback, Object) |
Begins asynchronous UndeleteMessage operation.
Marks a message with the specified sequence number as not deleted.
| |
BeginUndeleteMessage(String, AsyncCallback, Object) |
Begins asynchronous UndeleteMessage operation.
Marks a message with the specified unique ID as not deleted.
| |
BeginUndeleteMessage(ImapMessageSet, AsyncCallback, Object) |
Begins asynchronous UndeleteMessage operation.
Marks messages that belong to a specified message set as not deleted.
| |
BeginUnselectFolder(AsyncCallback, 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.
| |
BeginUnselectFolder(Boolean, AsyncCallback, 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.
| |
BeginUnsubscribe |
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.
| |
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.
| |
Connect(String, Int32, TlsParameters, ImapSecurity) | Obsolete. | |
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.
| |
CopyMessage(ImapMessageSet, String) |
Copies messages from the current folder that belong to a specified message set to the specified folder.
| |
CreateFolder |
Creates a folder with the specified name.
| |
DeleteFolder |
Deletes a folder with the specified name.
| |
DeleteMessage(Int32) |
Marks a message with the specified sequence number as deleted.
| |
DeleteMessage(String) |
Marks a message with the specified unique ID as deleted.
| |
DeleteMessage(ImapMessageSet) |
Marks messages that belong to a specified message set as deleted.
| |
Disconnect |
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.
| |
EndConnect |
Ends an asynchronous BeginConnect operation.
| |
EndCopyMessage |
Ends an asynchronous BeginCopyMessage operation.
| |
EndCreateFolder |
Ends an asynchronous BeginCreateFolder operation.
| |
EndDeleteFolder |
Ends an asynchronous BeginDeleteFolder operation.
| |
EndDeleteMessage |
Ends an asynchronous BeginDeleteMessage operation.
| |
EndDisconnect |
Ends an asynchronous BeginDisconnect operation.
| |
EndFolderExists |
Ends an asynchronous BeginFolderExists operation.
| |
EndGetFolderInfo |
Ends an asynchronous BeginGetFolderInfo operation.
| |
EndGetFolderList |
Ends an asynchronous BeginGetFolderList operation.
| |
EndGetMailMessage |
Ends an asynchronous BeginGetMailMessage operation.
| |
EndGetMessage |
Ends an asynchronous BeginGetMessage operation.
| |
EndGetMessageHeaders |
Ends an asynchronous BeginGetMessageHeaders operation.
| |
EndGetMessageInfo |
Ends an asynchronous BeginGetMessageInfo operation.
| |
EndGetMessageList |
Ends an asynchronous BeginGetMessageList operation.
| |
EndGetMessagePart |
Ends an asynchronous BeginGetMessagePart operation.
| |
EndGetMessages |
Ends an asynchronous BeginGetMessages operation.
| |
EndGetMimeMessage |
Ends an asynchronous BeginGetMimeMessage operation.
| |
EndCheckForUpdates |
Ends an asynchronous BeginCheckForUpdates operation.
| |
EndLogin |
Ends an asynchronous BeginLogin operation.
| |
EndPurge |
Ends an asynchronous BeginPurge operation.
| |
EndReadResponse |
Ends an asynchronous BeginReadResponse operation.
| |
EndRenameFolder |
Ends an asynchronous BeginRenameFolder operation.
| |
EndRequestCheckpoint |
Ends an asynchronous BeginRequestCheckpoint operation.
| |
EndSearch |
Ends an asynchronous BeginSearch operation.
| |
EndSecure |
Ends an asynchronous BeginSecure operation.
| |
EndSelectFolder |
Ends an asynchronous BeginSelectFolder operation.
| |
EndSendCommand |
Ends an asynchronous BeginSendCommand operation.
| |
EndSetMessageFlags |
Ends an asynchronous BeginSetMessageFlags operation.
| |
EndStoreMessage |
Ends an asynchronous BeginStoreMessage operation.
| |
EndStoreRawMessage |
Ends an asynchronous BeginStoreRawMessage operation.
| |
EndSubscribe |
Ends an asynchronous BeginSubscribe operation.
| |
EndUndeleteMessage |
Ends an asynchronous BeginUndeleteMessage operation.
| |
EndUnselectFolder |
Ends an asynchronous BeginUnselectFolder operation.
| |
EndUnsubscribe |
Ends an asynchronous BeginUnsubscribe operation.
| |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize |
Finalizer. Called by garbage collector during object destruction.
(Overrides Object..::..Finalize()()()().) | |
FolderExists |
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 |
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.
| |
GetHashCode | Serves as a hash function for a particular type. GetHashCode()()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
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.
| |
GetMessage(Int32, Stream) |
Downloads 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(String, Stream) |
Downloads 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(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, Int64, Int32) |
Downloads the message with the specified sequence number
and writes its data into a local file.
| |
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, Int64, Int32) |
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.
| |
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
| |
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.
| |
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(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(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, 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.
| |
GetMessages(ImapMessageSet, Action<(Of <<'(ImapMessage>)>>)) |
Downloads messages in the current folder that belong to a specified message set.
| |
GetMessages(ImapMessageSet, ImapListFields, Action<(Of <<'(ImapMessage>)>>)) |
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.
| |
GetSupportedAuthenticationMethods |
Gets the list of supported authentication methods.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
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.
| |
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.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnCommandSent |
Raises the CommandSent event.
| |
OnNotification |
Raises the Notification event.
| |
OnResponseRead |
Raises the ResponseRead event.
| |
OnStateChanged |
Raises the StateChanged event.
| |
OnTlsDebug | Obsolete. | |
OnTransferProgress |
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.
| |
ReadResponse |
Returns the response of the IMAP server to the command.
| |
RenameFolder |
Renames a specified folder to a new name.
| |
RequestCheckpoint |
Requests a checkpoint of the currently selected mailbox.
mailbox.
| |
Search(array<ImapSearchParameter>[]()[][]) |
Search the current folder for messages that match the specified searching criteria.
| |
Search(ImapListFields, array<ImapSearchParameter>[]()[][]) |
Search the current folder for messages that match the specified searching criteria.
| |
Search(ImapMessageSet, ImapListFields, array<ImapSearchParameter>[]()[][]) |
Search the current folder for messages that match the specified searching criteria.
| |
Secure()()()() |
Secures the connection with TLS/SSL using default parameters.
| |
Secure(TlsParameters) | Obsolete. | |
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.
| |
SendCommand |
Executes a command on the IMAP server.
| |
SetMessageFlags(Int32, ImapFlagAction, ImapMessageFlags) |
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(ImapMessageSet, ImapFlagAction, ImapMessageFlags) |
Modifies the flags of messages in the current folder that belong to a specified message set.
| |
SetMessageFlags(Int32, ImapFlagAction, ImapMessageFlags, array<String>[]()[][]) |
Modifies the flags of a message with the specified sequence number.
| |
SetMessageFlags(String, ImapFlagAction, ImapMessageFlags, array<String>[]()[][]) |
Modifies the flags of a message with the specified unique ID.
| |
SetMessageFlags(ImapMessageSet, ImapFlagAction, ImapMessageFlags, array<String>[]()[][]) |
Modifies the flags of messages in the current folder that belong to a specified message set.
| |
SetSocketFactory |
Sets the socket factory to be used to create communication sockets.
| |
StoreMessage(String, MailMessage) |
Uploads the message to the specified folder.
| |
StoreMessage(String, MimeMessage) |
Uploads the message to the specified folder.
| |
StoreMessage(String, Stream) |
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, MailMessage, ImapMessageFlags) |
Uploads the message to the specified folder and sets its flags.
| |
StoreMessage(String, MimeMessage, ImapMessageFlags) |
Uploads the message 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, String, ImapMessageFlags) |
Uploads the message read from a local file and sets its flags.
| |
StoreMessage(String, MailMessage, ImapMessageFlags, array<String>[]()[][]) |
Uploads the message to the specified folder and sets its flags.
| |
StoreMessage(String, MimeMessage, ImapMessageFlags, array<String>[]()[][]) |
Uploads the message to the specified folder and sets its flags.
| |
StoreMessage(String, Stream, ImapMessageFlags, array<String>[]()[][]) |
Uploads the message read from the stream to the specified folder and sets its flags.
| |
StoreMessage(String, String, ImapMessageFlags, array<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, array<String>[]()[][]) |
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, array<String>[]()[][]) |
Uploads the contents of the stream to the specified folder and sets its flags and date.
| |
Subscribe |
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.
(Overrides Object..::..ToString()()()().) | |
UndeleteMessage()()()() |
Marks all messages 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.
| |
UndeleteMessage(ImapMessageSet) |
Marks messages that belong to a specified message set 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.
| |
Unsubscribe |
Unsubscribes from a specified folder, removing it to a list of active folders that
appear in the folder listings with ImapFolderListMode set
to Subscribed.
|
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.
| |
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.
(Overrides NetworkSession..::..IsAuthenticated.) | |
IsBusy |
Gets a value indicating whether there is any operation (method) in progress.
| |
IsConnected |
Gets a value indicating whether the session is connected.
(Overrides NetworkSession..::..IsConnected.) | |
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.) | |
Options | Obsolete. | |
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).
| |
TlsDebugLevel | Obsolete. | |
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.
|
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.
| |
TlsDebug | Obsolete. | |
TransferProgress |
Occurs when data is send or received.
| |
ValidatingCertificate |
Occurs when a server certificate needs to be validated.
|