diff --git a/lib/imap.js b/lib/imap.js index 76ce23e..0d334ec 100644 --- a/lib/imap.js +++ b/lib/imap.js @@ -311,7 +311,7 @@ ImapConnection.prototype.connect = function(loginCb) { if (indata.line[0] === '*') { // Untagged server response var isUnsolicited = (requests[0] && requests[0].cmd === 'NOOP') - || (state.isIdle && state.ext.idle.state === IDLE_IDLING); + || (state.isIdle && state.ext.idle.state !== IDLE_NONE); if (m = XRegExp.exec(indata.line, REX_UNRESPNUM)) { // m.type = response type (numeric-based) m.type = m.type.toUpperCase();