IMAP Component |
The IMAP control is used to communicate with IMAP servers using the IMAP (Internet Message Access) protocol. (NOTE: The following is a very short description. For more information, please consult the help files that come with the respective package.) |
The first step in using the control is specifying a MailServer, a User to connect as, and a Password to authenticate with. After that, one or more requests may be sent to the server via the Action property. Results are retrieved through events and a number of key properties.
Normally, after connecting to the server, a Mailbox is selected (or examined) using the corresponding Action code. After the Mailbox is selected, MessageCount and RecentMessageCount show the number of messages in the mailbox, and MailboxFlags show the flags pertaining to the mailbox.
A number of operations may be performed by the server in response to commands sent via the Action property. The main arguments for most commands is the Mailbox property or the MessageSet property. The MessageSet property denotes either a single message, or a range of messages. Other arguments are specified through other properties such as SearchCriteria, MessageFlags, etc.
Responses are received through events such as MessageInfo, MailboxList, and also reflected to properties such as MessageText, MessageSubject, etc.
The MessagePart event describes the MIME structure of retrieved messages. One MessagePart event is fired for every message part, giving information about the particular part. Later on, message parts may be retrieved separately through the appropriate Action. This speeds up processing, by avoiding the need to retrieve full messages from the server.
The PITrail event traces the interaction between the client and the server. It includes all exchanges except for transfers of messages, message parts, and message headers.
This control requires a Winsock 1.1 compliant TCP/IP stack. This means that the Winsock stack installed in the system must have a version of at least 1.1. In particular, Windows 95, 98, and NT machines with Winsock 2.0 are fully supported.
PROPERTIES |
EVENTS |