@ -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;
if (state.status === STATES.NOAUTH) {
if (!state.isReady) {
clearTimeout(state.tmrConn);