OnIdle Event


Fires when another 10 millisecond period elapses during idling.

This event can only issued when Idle method is in progress. Because Idle method itself never stops, the correct way to stop it without breaking the connection is to set Proceed value of your OnIdle event handler to False.


Parameters:  
ByRef Proceed As Boolean Default value is True, which tells MailBee to continue idling. You can set it to False to finish idling by issuing DONE command to the server (the IMAP connection will still be opened, so that you can issue other IMAP commands then)  
Remarks: Events are turned off by default. To enable them, set EnableEvents to True

Usage example:

The example is available in Idle method topic.

See Also:

Idle Method

OnAlert Event
OnStatusChange Event


Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.