|
|
@ -177,13 +177,12 @@ ImapConnection.prototype.connect = function(loginCb) {
|
|
|
|
self._send('CAPABILITY', function() {
|
|
|
|
self._send('CAPABILITY', function() {
|
|
|
|
// No need to attempt the login sequence if we're on a PREAUTH
|
|
|
|
// No need to attempt the login sequence if we're on a PREAUTH
|
|
|
|
// connection.
|
|
|
|
// connection.
|
|
|
|
if (state.status != STATES.AUTH) {
|
|
|
|
if (state.status !== STATES.AUTH) {
|
|
|
|
// First get pre-auth capabilities, including server-supported auth
|
|
|
|
// First get pre-auth capabilities, including server-supported auth
|
|
|
|
// mechanisms
|
|
|
|
// mechanisms
|
|
|
|
self._login(redo);
|
|
|
|
self._login(redo);
|
|
|
|
} else {
|
|
|
|
} else
|
|
|
|
redo();
|
|
|
|
redo();
|
|
|
|
};
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|