|
|
@ -738,6 +738,10 @@ ImapConnection.prototype.connect = function(loginCb) {
|
|
|
|
} else if (RE_RES_IDLE.test(indata.line)) {
|
|
|
|
} else if (RE_RES_IDLE.test(indata.line)) {
|
|
|
|
self.debug&&self.debug('[parsing incoming] saw IDLE');
|
|
|
|
self.debug&&self.debug('[parsing incoming] saw IDLE');
|
|
|
|
requests.shift(); // remove IDLE request
|
|
|
|
requests.shift(); // remove IDLE request
|
|
|
|
|
|
|
|
var idx;
|
|
|
|
|
|
|
|
if ((idx = indata.line.indexOf(CRLF)) > -1)
|
|
|
|
|
|
|
|
indata.line = indata.line.substr(idx + 2);
|
|
|
|
|
|
|
|
else
|
|
|
|
indata.line = undefined;
|
|
|
|
indata.line = undefined;
|
|
|
|
state.ext.idle.state = IDLE_NONE;
|
|
|
|
state.ext.idle.state = IDLE_NONE;
|
|
|
|
state.ext.idle.timeStarted = undefined;
|
|
|
|
state.ext.idle.timeStarted = undefined;
|
|
|
@ -749,6 +753,11 @@ ImapConnection.prototype.connect = function(loginCb) {
|
|
|
|
} else if (RE_RES_NOOP.test(indata.line)) {
|
|
|
|
} else if (RE_RES_NOOP.test(indata.line)) {
|
|
|
|
self.debug&&self.debug('[parsing incoming] saw NOOP');
|
|
|
|
self.debug&&self.debug('[parsing incoming] saw NOOP');
|
|
|
|
requests.shift(); // remove NOOP request
|
|
|
|
requests.shift(); // remove NOOP request
|
|
|
|
|
|
|
|
var idx;
|
|
|
|
|
|
|
|
if ((idx = indata.line.indexOf(CRLF)) > -1)
|
|
|
|
|
|
|
|
indata.line = indata.line.substr(idx + 2);
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
indata.line = undefined;
|
|
|
|
if (!requests.length)
|
|
|
|
if (!requests.length)
|
|
|
|
doKeepaliveTimer();
|
|
|
|
doKeepaliveTimer();
|
|
|
|
else
|
|
|
|
else
|
|
|
|