Description
When IMAP processor can not parse command immediately disconnects a client .
Unfortunately from time to time outlook sends bad commands to the server.
One of the examples is Outlook 2007 - when copying a message (drag & drop message with Ctrl) it sends an empty request to the server ( \r \n ).
There are 2 options I can think about:
a) handling only the case would require consuming '\r' '\n' characters before processing a tag
b) general change of error handling - here is what Courier-IMAP is doing:
instead of sending bye & disconnecting, we could send NO, to avoid DoS 10 consequent errors are allowed, then say bye