IMAP: use socket events to drain the message queue more often