Adding preliminary support for IMAP IDLE command.