* commit 'aee74ef40d1521f5301d803e9c275285d9d719ee': Default to encrypted connections (YAY!)
This commit is contained in:
commit
12a5933af3
@ -960,22 +960,22 @@ public class AccountSetupFinal extends AccountSetupActivity
|
|||||||
final String domain = emailParts[1];
|
final String domain = emailParts[1];
|
||||||
|
|
||||||
final Account account = mSetupData.getAccount();
|
final Account account = mSetupData.getAccount();
|
||||||
|
final EmailServiceUtils.EmailServiceInfo info =
|
||||||
|
mSetupData.getIncomingServiceInfo(this);
|
||||||
|
|
||||||
final HostAuth recvAuth = account.getOrCreateHostAuthRecv(this);
|
final HostAuth recvAuth = account.getOrCreateHostAuthRecv(this);
|
||||||
recvAuth.setUserName(email);
|
recvAuth.setUserName(email);
|
||||||
recvAuth.setConnection(mSetupData.getIncomingProtocol(), domain,
|
recvAuth.setConnection(mSetupData.getIncomingProtocol(), domain,
|
||||||
HostAuth.PORT_UNKNOWN, HostAuth.FLAG_NONE);
|
HostAuth.PORT_UNKNOWN, info.offerTls ? HostAuth.FLAG_TLS : HostAuth.FLAG_SSL);
|
||||||
AccountSetupCredentialsFragment.populateHostAuthWithResults(this, recvAuth,
|
AccountSetupCredentialsFragment.populateHostAuthWithResults(this, recvAuth,
|
||||||
mSetupData.getCredentialResults());
|
mSetupData.getCredentialResults());
|
||||||
mSetupData.setIncomingCredLoaded(true);
|
mSetupData.setIncomingCredLoaded(true);
|
||||||
|
|
||||||
final EmailServiceUtils.EmailServiceInfo info =
|
|
||||||
mSetupData.getIncomingServiceInfo(this);
|
|
||||||
if (info.usesSmtp) {
|
if (info.usesSmtp) {
|
||||||
final HostAuth sendAuth = account.getOrCreateHostAuthSend(this);
|
final HostAuth sendAuth = account.getOrCreateHostAuthSend(this);
|
||||||
sendAuth.setUserName(email);
|
sendAuth.setUserName(email);
|
||||||
sendAuth.setConnection(HostAuth.LEGACY_SCHEME_SMTP, domain,
|
sendAuth.setConnection(HostAuth.LEGACY_SCHEME_SMTP, domain,
|
||||||
HostAuth.PORT_UNKNOWN, HostAuth.FLAG_NONE);
|
HostAuth.PORT_UNKNOWN, HostAuth.FLAG_TLS);
|
||||||
AccountSetupCredentialsFragment.populateHostAuthWithResults(this, sendAuth,
|
AccountSetupCredentialsFragment.populateHostAuthWithResults(this, sendAuth,
|
||||||
mSetupData.getCredentialResults());
|
mSetupData.getCredentialResults());
|
||||||
mSetupData.setOutgoingCredLoaded(true);
|
mSetupData.setOutgoingCredLoaded(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user