The Imap type exposes the following members.

Methods

  Name Description
Public method Append(String, EmailMessage)
Appends an email message to the specified mailbox.
Public method Append(String, IEnumerator)
Appends an emails messages to the specified mailbox.
Public method Connect
Establishes a connection to the IMAP server specified in the Imap constructor.
Public method CopyMessage(String, String, Boolean)
Copies specified message to specified folder.
Public method CopyMessage(String, String, String, Boolean)
Copies specified messages to specified folder.
Public method CreateMailbox
Creates a new mailbox on IMAP server.
Public method 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.)
Public method DeleteMailbox
Deletes a mailbox on the IMAP server.
Public method DeleteMessage(Int32)
Marks a message for deletion from the current mailbox.
Public method DeleteMessage(Int32, Int32)
Marks a range of messages for deletion from the current mailbox.
Public method Disconnect
Disconnects from IMAP server.
Public method Dispose()()()()
Releases all resources used by the Component.
(Inherited from Component.)
Protected method Dispose(Boolean)
Clean up any resources being used.
(Overrides Component..::..Dispose(Boolean).)
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public method Expunge
Deletes messages marked for deletion from current mailbox.
Protected method Finalize
Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component.)
Protected method FireCommandSentEvent
Fires CommandSentEvent event.
Protected method FireConnectedEvent
Fires ConnectedEvent event.
Protected method FireDataReceivedEvent
Fires DataReceivedEvent event.
Protected method FireDisconnectedEvent
Fires DisconnectedEvent event.
Protected method FireMessageRetrievedEvent
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public method GetMailboxes Obsolete.
Gets all mailboxes found for account.
Public method GetMessage
Retrieves a message from the current mailbox.
Public method GetMessageCount
Gets the number of messages in the current mailbox.
Public method GetMessageHeader
Gets the named header for a message.
Public method GetMessageHeaders
Gets message headers for a message.
Public method GetMessageID
Gets messages matching specified SEARCH expression.
Public method GetMessages()()()()
Gets all available messages in current mailbox from IMAP server.
Public method GetMessages(array<Int32>[]()[][])
Gets messages for specified message ID's.
Public method GetMessages(String)
Gets messages matching specified SEARCH expression.
Public method 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
CopyC#
getMessageWithFlags(int index)
method.
Public method GetMessagesWithFlags(array<Int32>[]()[][])
Gets messages for specified message ID's with flags.
Public method GetMessagesWithFlags(String)
Gets messages with flags matching specified SEARCH expression.
Public method GetMessageWithFlags
Gets message from current mailbox along with message flags. Message number is one based, meaning that message numbers range from 1 to
CopyC#
getMessageCount()
Public method GetNewMessageID
Gets an int[] representing the IDs of new messages in current mailbox from IMAP server.
Public method GetNewMessages
Gets all new messages in current mailbox from IMAP server.
Public method GetOutputStream
Gets the output stream of the socket connection.
Protected method GetService
Returns an object that represents a service provided by the Component or by its Container.
(Inherited from Component.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method InitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public method Interrupted
Interrupts the current process.
Public method IsConnected
Tests Imap connection.
Public method IssueCommand
Issues a command to IMAP server and reads response.
Public method ListMailboxes()()()()
Gets all mailboxes for account.
Public method ListMailboxes(String, String)
Gets all mailboxes for account.
Protected method MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected method MemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Public method MoveMessage(Int32, String)
Moves specified message to specified folder.
Public method MoveMessage(Int32, Int32, String)
Moves specified messages to specified folder.
Public method RenameMailbox
Renames a mailbox on the IMAP server.
Public method SelectMailbox
Selects the mailbox on IMAP server.
Public method Store(Int32, Int32, Int32)
Sets message flags for a single message in an IMAP mailbox.
Public method Store(Int32, Int32, Int32, Int32)
Sets message flags for a range of messages in an IMAP mailbox.
Public method ToString
Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component.)

Fields

  Name Description
Public field Static member AUTH_CRAM_MD5
CRAM MD5 flag.
Public field Static member AUTH_PASS
Simple Username Password flag.
Public field Static member FLAG_ANSWERED
Flag used in marking a message as Answered.
Public field Static member FLAG_DELETED
Flag used in marking a message as Deleted.
Public field Static member FLAG_DRAFT
Flag used in marking a message as Draft.
Public field Static member FLAG_FLAGGED
Flag used in marking a message as Flagged.
Public field Static member FLAG_MODE_ADD
Flag mode used to add flags.
Public field Static member FLAG_MODE_DELETE
Flag mode used to delete flags.
Public field Static member FLAG_MODE_REPLACE
Flag mode used to replace flags.
Public field Static member FLAG_RECENT
Flag used in marking a message as Recent.
Public field Static member FLAG_SEEN
Flag used in marking a message as Seen.

Properties

  Name Description
Public property Authenticated
Public property AuthMode
Gets/Sets the authorization mode.
Protected property CanRaiseEvents
Gets a value indicating whether the component can raise an event.
(Inherited from Component.)
Public property CommandCount
Gets/Sets the current command count.
Public property Container
Gets the IContainer that contains the Component.
(Inherited from Component.)
Public property CurrentMailbox
Gets/Sets the current mail box.
Public property Debug
Gets/Sets Imap debug flag.
Public property DebugStream
Gets/Sets debug output stream.
Public property DeleteMessages
Gets/Sets Delete flag used to delete messages from IMAP server.
Protected property DesignMode
Gets a value that indicates whether the Component is currently in design mode.
(Inherited from Component.)
Protected property Events
Gets the list of event handlers that are attached to this Component.
(Inherited from Component.)
Public property Hostname
Gets/Sets the IMAP server host name.
Public property LicenseKey
License key.
Public property Password
Gets/Sets the Password used to retrieve messages from the IMAP server.
Public property Port
Gets/Sets the IMAP server port number.
Public property ProxyHostname
Gets/Sets the hostname or IP address of the Proxy server.
Public property ProxyPassword
Gets/Sets the password used to log in to the Proxy server.
Public property ProxyPort
Gets/Sets the port of the Proxy server.
Public property ProxyType
Gets/Sets the type of Proxy server.
Public property ProxyUsername
Gets/Sets the username used to log in to the Proxy server.
Public property Site
Gets or sets the ISite of the Component.
(Inherited from Component.)
Public property Timeout
Gets/Sets the Socket Timeout parameter.
Public property Username
Gets/Sets the Username used to retrieve messages from the IMAP server.

Events

  Name Description
Public event CommandSentEvent
Occurs after successfully sending data to the IMAP server.
Public event ConnectedEvent
Occurs after a successful connection to the IMAP server.
Public event DataReceivedEvent
Occurs after successfully reading data from the IMAP server.
Public event DisconnectedEvent
Occurs after a successful disconnection from the IMAP server.
Public event Disposed
Occurs when the component is disposed by a call to the Dispose()()()() method.
(Inherited from Component.)
Public event MessageRetrievedEvent
Occurs after successfully reading a message from the IMAP server.

See Also