trim response line for misbehaving IMAP servers

fork
mscdex 12 years ago
parent 455aabab49
commit 10f158e689

@ -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)

Loading…
Cancel
Save