B2G/gaia/apps/email/js/ext/mailapi/imap/probe.js
/**
 * Right now our tests consist of:
 * - logging in to test the credentials
 *
 * If we succeed at that, we hand off the established connection to our caller
 * so they can reuse it.
 */
Right now our tests consist of:
- logging in to test the credentials

If we succeed at that, we hand off the established connection to our caller
so they can reuse it.
Right now our tests consist of : - logging in to test the credentials If we succeed at that we hand off the established connection to our caller so they can reuse it .
function ImapProber(credentials, connInfo, _LOG) {
  var opts = {
    host: connInfo.hostname,
    port: connInfo.port,
    crypto: connInfo.crypto,
    username: credentials.username,
    password: credentials.password,
    connTimeout: exports.CONNECT_TIMEOUT_MS,
  };
  if (_LOG)
    opts._logParent = _LOG;
  console.log("PROBE:IMAP attempting to connect to", connInfo.hostname);
  this._conn = new $imap.ImapConnection(opts);
  this._conn.connect(this.onLoggedIn.bind(this));
  this._conn.on('error', this.onError.bind(this));
  this.tzOffset = null;
  this.blacklistedCapabilities = null;
  this.onresult = null;
  this.error = null;
  this.errorDetails = { server: connInfo.hostname };
}
function ImapProber ( credentials , connInfo , _LOG ) { var opts = { host : connInfo . hostname , port : connInfo . port , crypto : connInfo . crypto , username : credentials . username , password : credentials . password , connTimeout : exports . CONNECT_TIMEOUT_MS , } ; if ( _LOG ) opts . _logParent = _LOG ; console . log ( "PROBE:IMAP attempting to connect to" , connInfo . hostname ) ; this . _conn = new $imap . ImapConnection ( opts ) ; this . _conn . connect ( this . onLoggedIn . bind ( this ) ) ; this . _conn . on ( 'error' , this . onError . bind ( this ) ) ; this . tzOffset = null ; this . blacklistedCapabilities = null ; this . onresult = null ; this . error = null ; this . errorDetails = { server : connInfo . hostname } ; }
Right now our tests consist of:
 - logging in to test the credentials
Right now our tests consist of : - logging in to test the credentials