Support for IMAP IDLE Command

[ ]

Aspoe.Email API’s ImapClient provides the capability to open a connection to the server and wait for the arrival of an email message. This allows avoiding polling the server again and again for any incoming email. The following code snippet shows you how to Support for IMAP Idle Command.

// For complete examples and data files, please go to
// Connect and log in to IMAP
ImapClient client = new ImapClient("", "username", "password");

client.startMonitoring(new ImapMonitoringEventHandler() {
    public void invoke(Object sender, ImapMonitoringEventArgs e) {