Better IDLE state handling
OpenMailbox.org doesn't complete transactions when the IDLE state is entered while commands are outstanding. One thing I've considered for a while is only issuing IDLE when no comands are outstanding, as in some situations the connection state "thrashes" if commands come in back-to-back. This commit does just that, only entering IDLE when no commands are outstanding.
Showing with 36 additions and 7 deletions