Added debug APOP option

This commit is contained in:
M66B
2022-02-03 18:24:56 +01:00
parent f2a92071c3
commit f78925fb23
5 changed files with 30 additions and 4 deletions

View File

@@ -192,11 +192,13 @@ public class EmailService implements AutoCloseable {
boolean auth_login = prefs.getBoolean("auth_login", true);
boolean auth_ntlm = prefs.getBoolean("auth_ntlm", true);
boolean auth_sasl = prefs.getBoolean("auth_sasl", true);
boolean auth_apop = prefs.getBoolean("auth_apop", false);
Log.i("Authenticate" +
" plain=" + auth_plain +
" login=" + auth_login +
" ntlm=" + auth_ntlm +
" sasl=" + auth_sasl);
" sasl=" + auth_sasl +
" apop=" + auth_apop);
properties.put("mail.event.scope", "folder");
properties.put("mail.event.executor", executor);
@@ -207,6 +209,8 @@ public class EmailService implements AutoCloseable {
properties.put("mail." + protocol + ".auth.login.disable", "true");
if (!auth_ntlm)
properties.put("mail." + protocol + ".auth.ntlm.disable", "true");
if (auth_apop)
properties.put("mail." + protocol + ".apop.enable", "true");
// SASL is attempted before other authentication methods
properties.put("mail." + protocol + ".sasl.enable", Boolean.toString(auth_sasl));