update unsolicited response check

fork
mscdex 12 years ago
parent 26c6a7827c
commit 3d7b5e4cc8

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

Loading…
Cancel
Save