fix ignoring of 'useless' untagged OK responses

fork
mscdex 12 years ago
parent b974f4da64
commit 6b0b8ff8b4

@ -537,9 +537,9 @@ ImapConnection.prototype.connect = function(loginCb) {
self.debug&&self.debug('[parsing incoming] saw untagged ' + m[1]);
switch (m[1]) {
case 'OK':
var code = m[2];
if (code === undefined)
if (m[2] === undefined && m[3] === undefined)
break;
var code = m[2];
if (state.status === STATES.NOAUTH) {
if (!state.isReady) {
clearTimeout(state.tmrConn);

Loading…
Cancel
Save