|
|
@ -127,9 +127,8 @@ ImapConnection.prototype.connect = function(loginCb) {
|
|
|
|
|
|
|
|
|
|
|
|
if (this._options.secure) {
|
|
|
|
if (this._options.secure) {
|
|
|
|
var tlsOptions = {};
|
|
|
|
var tlsOptions = {};
|
|
|
|
for (var k in this._options.secure) {
|
|
|
|
for (var k in this._options.secure)
|
|
|
|
tlsOptions[k] = this._options.secure[k];
|
|
|
|
tlsOptions[k] = this._options.secure[k];
|
|
|
|
}
|
|
|
|
|
|
|
|
tlsOptions.socket = state.conn;
|
|
|
|
tlsOptions.socket = state.conn;
|
|
|
|
if (process.version.indexOf('v0.6.') > -1)
|
|
|
|
if (process.version.indexOf('v0.6.') > -1)
|
|
|
|
socket = tls.connect(null, tlsOptions, onconnect);
|
|
|
|
socket = tls.connect(null, tlsOptions, onconnect);
|
|
|
|