diff --git a/app/src/main/java/eu/faircode/email/EmailService.java b/app/src/main/java/eu/faircode/email/EmailService.java index d14721676f..ea6b27865c 100644 --- a/app/src/main/java/eu/faircode/email/EmailService.java +++ b/app/src/main/java/eu/faircode/email/EmailService.java @@ -144,7 +144,6 @@ public class EmailService implements AutoCloseable { boolean socks_enabled = prefs.getBoolean("socks_enabled", false); String socks_proxy = prefs.getString("socks_proxy", "localhost:9050"); - boolean auth_plain = prefs.getBoolean("auth_plain", true); boolean auth_sasl = prefs.getBoolean("auth_sasl", true); // SOCKS proxy @@ -164,8 +163,6 @@ public class EmailService implements AutoCloseable { properties.put("mail.event.scope", "folder"); properties.put("mail.event.executor", executor); - properties.put("mail." + protocol + ".auth.plain.disable", Boolean.toString(!auth_plain)); - properties.put("mail." + protocol + ".sasl.enable", "true"); if (auth_sasl) { properties.put("mail." + protocol + ".sasl.mechanisms", "CRAM-MD5"); diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java b/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java index dcc34f97a5..344538e8db 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java @@ -77,7 +77,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc private SwitchCompat swCrashReports; private TextView tvUuid; private SwitchCompat swDebug; - private SwitchCompat swAuthPlain; private SwitchCompat swAuthSasl; private Button btnReset; private SwitchCompat swCleanupAttachments; @@ -96,7 +95,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc private final static String[] RESET_OPTIONS = new String[]{ "shortcuts", "fts", "english", "watchdog", "auto_optimize", "updates", - "experiments", "crash_reports", "debug", "auth_plain", "auth_sasl", "cleanup_attachments" + "experiments", "crash_reports", "debug", "auth_sasl", "cleanup_attachments" }; private final static String[] RESET_QUESTIONS = new String[]{ @@ -133,7 +132,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc swCrashReports = view.findViewById(R.id.swCrashReports); tvUuid = view.findViewById(R.id.tvUuid); swDebug = view.findViewById(R.id.swDebug); - swAuthPlain = view.findViewById(R.id.swAuthPlain); swAuthSasl = view.findViewById(R.id.swAuthSasl); btnReset = view.findViewById(R.id.btnReset); swCleanupAttachments = view.findViewById(R.id.swCleanupAttachments); @@ -281,14 +279,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc } }); - swAuthPlain.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { - @Override - public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { - prefs.edit().putBoolean("auth_plain", checked).apply(); - ServiceSynchronize.reload(getContext(), -1L, false, "auth_plain=" + checked); - } - }); - swAuthSasl.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { @@ -537,7 +527,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc swCrashReports.setChecked(prefs.getBoolean("crash_reports", false)); tvUuid.setText(prefs.getString("uuid", null)); swDebug.setChecked(prefs.getBoolean("debug", false)); - swAuthPlain.setChecked(prefs.getBoolean("auth_plain", true)); swAuthSasl.setChecked(prefs.getBoolean("auth_sasl", true)); swCleanupAttachments.setChecked(prefs.getBoolean("cleanup_attachments", false)); diff --git a/app/src/main/res/layout/fragment_options_misc.xml b/app/src/main/res/layout/fragment_options_misc.xml index 07570ef28b..4b0a4c1c76 100644 --- a/app/src/main/res/layout/fragment_options_misc.xml +++ b/app/src/main/res/layout/fragment_options_misc.xml @@ -254,18 +254,6 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/swDebug" /> - -