mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 06:38:29 +02:00
Removed select account
This commit is contained in:
@@ -106,7 +106,7 @@ public class MessageHelper {
|
||||
System.setProperty("mail.mime.multipart.ignoreexistingboundaryparameter", "true");
|
||||
}
|
||||
|
||||
static Properties getSessionProperties(int auth_type, String realm, boolean insecure) {
|
||||
static Properties getSessionProperties(String realm, boolean insecure) {
|
||||
Properties props = new Properties();
|
||||
|
||||
props.put("mail.event.scope", "folder");
|
||||
@@ -204,15 +204,6 @@ public class MessageHelper {
|
||||
System.setProperty("java.net.preferIPv4Stack", "true");
|
||||
}
|
||||
|
||||
// https://javaee.github.io/javamail/OAuth2
|
||||
Log.i("Auth type=" + auth_type);
|
||||
if (auth_type == ConnectionHelper.AUTH_TYPE_GMAIL) {
|
||||
props.put("mail.imaps.auth.mechanisms", "XOAUTH2");
|
||||
props.put("mail.imap.auth.mechanisms", "XOAUTH2");
|
||||
props.put("mail.smtps.auth.mechanisms", "XOAUTH2");
|
||||
props.put("mail.smtp.auth.mechanisms", "XOAUTH2");
|
||||
}
|
||||
|
||||
return props;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user