The Imap type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() |
Append(String, EmailMessage) |
Appends an email message to the specified mailbox.
|
![]() |
Append(String, IEnumerator) |
Appends an emails messages to the specified mailbox.
|
![]() |
Connect |
Establishes a connection to the IMAP server specified in
the Imap constructor.
|
![]() |
CopyMessage(String, String, Boolean) |
Copies specified message to specified folder.
|
![]() |
CopyMessage(String, String, String, Boolean) |
Copies specified messages to specified folder.
|
![]() |
CreateMailbox |
Creates a new mailbox on IMAP server.
|
![]() |
CreateObjRef |
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.) |
![]() |
DeleteMailbox |
Deletes a mailbox on the IMAP server.
|
![]() |
DeleteMessage(Int32) |
Marks a message for deletion from the current mailbox.
|
![]() |
DeleteMessage(Int32, Int32) |
Marks a range of messages for deletion from the current mailbox.
|
![]() |
Disconnect |
Disconnects from IMAP server.
|
![]() |
Dispose()()()() |
Releases all resources used by the Component.
(Inherited from Component.) |
![]() |
Dispose(Boolean) |
Clean up any resources being used.
(Overrides Component..::..Dispose(Boolean).) |
![]() |
Equals | (Inherited from Object.) |
![]() |
Expunge |
Deletes messages marked for deletion from current mailbox.
|
![]() |
Finalize |
Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component.) |
![]() |
FireCommandSentEvent |
Fires CommandSentEvent event.
|
![]() |
FireConnectedEvent |
Fires ConnectedEvent event.
|
![]() |
FireDataReceivedEvent |
Fires DataReceivedEvent event.
|
![]() |
FireDisconnectedEvent |
Fires DisconnectedEvent event.
|
![]() |
FireMessageRetrievedEvent |
Fires MessageRetrievedEvent event.
|
![]() |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
![]() |
GetLifetimeService |
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.) |
![]() |
GetMailboxes | Obsolete.
Gets all mailboxes found for account.
|
![]() |
GetMessage |
Retrieves a message from the current mailbox.
|
![]() |
GetMessageCount |
Gets the number of messages in the current mailbox.
|
![]() |
GetMessageHeader |
Gets the named header for a message.
|
![]() |
GetMessageHeaders |
Gets message headers for a message.
|
![]() |
GetMessageID |
Gets messages matching specified SEARCH expression.
|
![]() |
GetMessages()()()() |
Gets all available messages in current mailbox from IMAP server.
|
![]() |
GetMessages(array<Int32>[]()[][]) |
Gets messages for specified message ID's.
|
![]() |
GetMessages(String) |
Gets messages matching specified SEARCH expression.
|
![]() |
GetMessagesWithFlags()()()() |
Gets all available messages with flags in current mailbox from IMAP server.
All messages are stored in memory resulting in potential memory issues if
not enough memory is available. To avoid potential memory issue you may retrieve messages
individually using the
![]() getMessageWithFlags(int index) |
![]() |
GetMessagesWithFlags(array<Int32>[]()[][]) |
Gets messages for specified message ID's with flags.
|
![]() |
GetMessagesWithFlags(String) |
Gets messages with flags matching specified SEARCH expression.
|
![]() |
GetMessageWithFlags |
Gets message from current mailbox along with message flags. Message
number is one based, meaning that message numbers range from 1 to
![]() getMessageCount() |
![]() |
GetNewMessageID |
Gets an int[] representing the IDs of new messages
in current mailbox from IMAP server.
|
![]() |
GetNewMessages |
Gets all new messages in current mailbox from IMAP server.
|
![]() |
GetOutputStream |
Gets the output stream of the socket connection.
|
![]() |
GetService | (Inherited from Component.) |
![]() |
GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
![]() |
InitializeLifetimeService |
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.) |
![]() |
Interrupted |
Interrupts the current process.
|
![]() |
IsConnected |
Tests Imap connection.
|
![]() |
IssueCommand |
Issues a command to IMAP server and reads response.
|
![]() |
ListMailboxes()()()() |
Gets all mailboxes for account.
|
![]() |
ListMailboxes(String, String) |
Gets all mailboxes for account.
|
![]() |
MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
![]() |
MemberwiseClone(Boolean) |
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.) |
![]() |
MoveMessage(Int32, String) |
Moves specified message to specified folder.
|
![]() |
MoveMessage(Int32, Int32, String) |
Moves specified messages to specified folder.
|
![]() |
RenameMailbox |
Renames a mailbox on the IMAP server.
|
![]() |
SelectMailbox |
Selects the mailbox on IMAP server.
|
![]() |
Store(Int32, Int32, Int32) |
Sets message flags for a single message in an IMAP mailbox.
|
![]() |
Store(Int32, Int32, Int32, Int32) |
Sets message flags for a range of messages in an IMAP mailbox.
|
![]() |
ToString |
Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component.) |
Fields
Name | Description | |
---|---|---|
![]() ![]() |
AUTH_CRAM_MD5 |
CRAM MD5 flag.
|
![]() ![]() |
AUTH_PASS |
Simple Username Password flag.
|
![]() ![]() |
FLAG_ANSWERED |
Flag used in marking a message as Answered.
|
![]() ![]() |
FLAG_DELETED |
Flag used in marking a message as Deleted.
|
![]() ![]() |
FLAG_DRAFT |
Flag used in marking a message as Draft.
|
![]() ![]() |
FLAG_FLAGGED |
Flag used in marking a message as Flagged.
|
![]() ![]() |
FLAG_MODE_ADD |
Flag mode used to add flags.
|
![]() ![]() |
FLAG_MODE_DELETE |
Flag mode used to delete flags.
|
![]() ![]() |
FLAG_MODE_REPLACE |
Flag mode used to replace flags.
|
![]() ![]() |
FLAG_RECENT |
Flag used in marking a message as Recent.
|
![]() ![]() |
FLAG_SEEN |
Flag used in marking a message as Seen.
|
Properties
Name | Description | |
---|---|---|
![]() |
Authenticated | |
![]() |
AuthMode |
Gets/Sets the authorization mode.
|
![]() |
CanRaiseEvents |
Gets a value indicating whether the component can raise an event.
(Inherited from Component.) |
![]() |
CommandCount |
Gets/Sets the current command count.
|
![]() |
Container |
Gets the IContainer that contains the Component.
(Inherited from Component.) |
![]() |
CurrentMailbox |
Gets/Sets the current mail box.
|
![]() |
Debug |
Gets/Sets Imap debug flag.
|
![]() |
DebugStream |
Gets/Sets debug output stream.
|
![]() |
DeleteMessages |
Gets/Sets Delete flag used to delete messages from IMAP server.
|
![]() |
DesignMode |
Gets a value that indicates whether the Component is currently in design mode.
(Inherited from Component.) |
![]() |
Events |
Gets the list of event handlers that are attached to this Component.
(Inherited from Component.) |
![]() |
Hostname |
Gets/Sets the IMAP server host name.
|
![]() |
LicenseKey |
License key.
|
![]() |
Password |
Gets/Sets the Password used to retrieve messages from the IMAP server.
|
![]() |
Port |
Gets/Sets the IMAP server port number.
|
![]() |
ProxyHostname |
Gets/Sets the hostname or IP address of the Proxy server.
|
![]() |
ProxyPassword |
Gets/Sets the password used to log in to the Proxy server.
|
![]() |
ProxyPort |
Gets/Sets the port of the Proxy server.
|
![]() |
ProxyType |
Gets/Sets the type of Proxy server.
|
![]() |
ProxyUsername |
Gets/Sets the username used to log in to the Proxy server.
|
![]() |
Site | (Inherited from Component.) |
![]() |
Timeout |
Gets/Sets the Socket Timeout parameter.
|
![]() |
Username |
Gets/Sets the Username used to retrieve messages from the IMAP server.
|
Events
Name | Description | |
---|---|---|
![]() |
CommandSentEvent |
Occurs after successfully sending data to the IMAP server.
|
![]() |
ConnectedEvent |
Occurs after a successful connection to the IMAP server.
|
![]() |
DataReceivedEvent |
Occurs after successfully reading data from the IMAP server.
|
![]() |
DisconnectedEvent |
Occurs after a successful disconnection from the IMAP server.
|
![]() |
Disposed |
Occurs when the component is disposed by a call to the Dispose()()()() method.
(Inherited from Component.) |
![]() |
MessageRetrievedEvent |
Occurs after successfully reading a message from the IMAP server.
|