From 3d7b5e4cc8cc148a7a09e1a03bdc27aef4dea324 Mon Sep 17 00:00:00 2001 From: mscdex Date: Sun, 7 Apr 2013 19:37:28 -0400 Subject: [PATCH] update unsolicited response check --- lib/imap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();