From 567ba9c71212ef6f23d4b906ac532a037cc2b03c Mon Sep 17 00:00:00 2001 From: cketti Date: Wed, 5 Mar 2014 06:47:59 +0100 Subject: [PATCH] Enable connection security by default when setting up an account --- .../k9/activity/setup/AccountSetupAccountType.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/com/fsck/k9/activity/setup/AccountSetupAccountType.java b/src/com/fsck/k9/activity/setup/AccountSetupAccountType.java index 3e038166f..107c9f320 100644 --- a/src/com/fsck/k9/activity/setup/AccountSetupAccountType.java +++ b/src/com/fsck/k9/activity/setup/AccountSetupAccountType.java @@ -53,11 +53,11 @@ public class AccountSetupAccountType extends K9Activity implements OnClickListen private void onPop() { try { URI uri = new URI(mAccount.getStoreUri()); - uri = new URI("pop3", uri.getUserInfo(), uri.getHost(), uri.getPort(), null, null, null); + uri = new URI("pop3+ssl+", uri.getUserInfo(), uri.getHost(), uri.getPort(), null, null, null); mAccount.setStoreUri(uri.toString()); uri = new URI(mAccount.getTransportUri()); - uri = new URI("smtp", uri.getUserInfo(), uri.getHost(), uri.getPort(), null, null, null); + uri = new URI("smtp+tls+", uri.getUserInfo(), uri.getHost(), uri.getPort(), null, null, null); mAccount.setTransportUri(uri.toString()); AccountSetupIncoming.actionIncomingSettings(this, mAccount, mMakeDefault); @@ -71,11 +71,11 @@ public class AccountSetupAccountType extends K9Activity implements OnClickListen private void onImap() { try { URI uri = new URI(mAccount.getStoreUri()); - uri = new URI("imap", uri.getUserInfo(), uri.getHost(), uri.getPort(), null, null, null); + uri = new URI("imap+ssl+", uri.getUserInfo(), uri.getHost(), uri.getPort(), null, null, null); mAccount.setStoreUri(uri.toString()); uri = new URI(mAccount.getTransportUri()); - uri = new URI("smtp", uri.getUserInfo(), uri.getHost(), uri.getPort(), null, null, null); + uri = new URI("smtp+tls+", uri.getUserInfo(), uri.getHost(), uri.getPort(), null, null, null); mAccount.setTransportUri(uri.toString()); AccountSetupIncoming.actionIncomingSettings(this, mAccount, mMakeDefault); @@ -89,7 +89,7 @@ public class AccountSetupAccountType extends K9Activity implements OnClickListen private void onWebDav() { try { URI uri = new URI(mAccount.getStoreUri()); - uri = new URI("webdav", uri.getUserInfo(), uri.getHost(), uri.getPort(), null, null, null); + uri = new URI("webdav+ssl+", uri.getUserInfo(), uri.getHost(), uri.getPort(), null, null, null); mAccount.setStoreUri(uri.toString()); AccountSetupIncoming.actionIncomingSettings(this, mAccount, mMakeDefault); finish();