Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Update TIdIMAP4 to support the IDLE command #147
The IDLE command (http://www.ietf.org/rfc/rfc2177.txt) allows the server to push real-time message notifications to the client, instead of having the client poll the server for changes periodically. However, TIdIMAP4's current blocking command/response code model cannot support that as-is. The IMAP protocol is not a clean command/response model like other common Internet protocols. It can have unsolicited data inter-mixed between commands and their responses. At the very least, in order to support the IDLE command, TIdIMAP4 would need to run an internal reading thread during the time that the IDLE state is active, and not allow any outbound commands to be sent until the IDLE state is deactivated.