diff --git a/lib/imap.js b/lib/imap.js index 0835dae..7ce8c2d 100644 --- a/lib/imap.js +++ b/lib/imap.js @@ -310,6 +310,7 @@ ImapConnection.prototype.connect = function(loginCb) { } } + indata.line = indata.line.trim(); if (indata.line[0] === '*') { // Untagged server response var isUnsolicited = (requests[0] && requests[0].cmd === 'NOOP') || (state.isIdle && state.ext.idle.state !== IDLE_NONE)