mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-16 22:13:34 +02:00
Fixed realm
This commit is contained in:
@@ -66,6 +66,9 @@ public class MailService implements AutoCloseable {
|
||||
properties.put("mail.event.scope", "folder");
|
||||
properties.put("mail.event.executor", executor);
|
||||
|
||||
properties.put("mail." + protocol + ".sasl.realm", realm == null ? "" : realm);
|
||||
properties.put("mail." + protocol + ".auth.ntlm.domain", realm == null ? "" : realm);
|
||||
|
||||
String checkserveridentity = Boolean.toString(!insecure).toLowerCase(Locale.ROOT);
|
||||
|
||||
if ("pop3".equals(protocol) || "pop3s".equals(protocol)) {
|
||||
@@ -95,9 +98,6 @@ public class MailService implements AutoCloseable {
|
||||
properties.put("mail.imap.starttls.enable", "true");
|
||||
properties.put("mail.imap.starttls.required", "true");
|
||||
|
||||
if (realm != null)
|
||||
properties.put("mail." + protocol + ".auth.ntlm.domain", realm);
|
||||
|
||||
// TODO: make timeouts configurable?
|
||||
properties.put("mail." + protocol + ".connectiontimeout", Integer.toString(CONNECT_TIMEOUT));
|
||||
properties.put("mail." + protocol + ".writetimeout", Integer.toString(WRITE_TIMEOUT)); // one thread overhead
|
||||
@@ -132,9 +132,6 @@ public class MailService implements AutoCloseable {
|
||||
|
||||
properties.put("mail." + protocol + ".auth", "true");
|
||||
|
||||
if (realm != null)
|
||||
properties.put("mail." + protocol + ".auth.ntlm.domain", realm);
|
||||
|
||||
properties.put("mail." + protocol + ".connectiontimeout", Integer.toString(CONNECT_TIMEOUT));
|
||||
properties.put("mail." + protocol + ".writetimeout", Integer.toString(WRITE_TIMEOUT)); // one thread overhead
|
||||
properties.put("mail." + protocol + ".timeout", Integer.toString(READ_TIMEOUT));
|
||||
|
||||
Reference in New Issue
Block a user