diff --git a/res/xml/providers.xml b/res/xml/providers.xml index ef28ec7c4..2ee813761 100644 --- a/res/xml/providers.xml +++ b/res/xml/providers.xml @@ -35,20 +35,17 @@ will be used. Valid incoming uri schemes are: - imap IMAP with no transport security. imap+tls+ IMAP with required TLS transport security. If TLS is not available the conneciton fails. imap+ssl+ IMAP with required SSL transport security. If SSL is not available the connection fails. - pop3 POP3 with no transport security. pop3+tls+ POP3 with required TLS transport security. If TLS is not available the conneciton fails. pop3+ssl+ POP3 with required SSL transport security. If SSL is not available the connection fails. Valid outgoing uri schemes are: - smtp SMTP with no transport security. smtp+tls+ SMTP with required TLS transport security. If TLS is not available the conneciton fails. smtp+ssl+ SMTP with required SSL transport security. @@ -56,7 +53,6 @@ The URIs should be full templates for connection, including a port if the service uses a non-default port. The default ports are as follows: - imap 143 pop3 110 smtp 587 imap+tls+ 143 pop3+tls+ 110 smtp+tls+ 587 imap+ssl+ 993 pop3+ssl+ 995 smtp+ssl+ 465 @@ -75,6 +71,9 @@ The username attribute MAY be the empty string for the outgoing element, but only if the SMTP server supports anonymous transmission (most don't). + + While it would technically work please DO NOT add providers that don't support encrypted + connections. --> @@ -98,24 +97,10 @@ - - - - - - - - - - - - - - @@ -124,14 +109,6 @@ - - - - - - - - @@ -152,18 +129,6 @@ - - - - - - - - - - - - @@ -198,10 +163,6 @@ - - - - @@ -250,44 +211,7 @@ - - - - - - - - - - - - - - - - - @@ -298,15 +222,6 @@ - - - - - - - - @@ -479,35 +394,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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(); diff --git a/src/com/fsck/k9/preferences/SettingsImporter.java b/src/com/fsck/k9/preferences/SettingsImporter.java index 02458b919..8d098ce13 100644 --- a/src/com/fsck/k9/preferences/SettingsImporter.java +++ b/src/com/fsck/k9/preferences/SettingsImporter.java @@ -1122,7 +1122,7 @@ public class SettingsImporter { } return ConnectionSecurity.valueOf(connectionSecurity); } catch (Exception e) { - return ConnectionSecurity.NONE; + return ConnectionSecurity.SSL_TLS_REQUIRED; } } }