mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-01 18:41:20 +01:00
Improvements, fixes
This commit is contained in:
@@ -98,9 +98,11 @@ public class MessageHelper {
|
||||
props.put("mail.mime.decodetext.strict", "false");
|
||||
|
||||
// https://javaee.github.io/javamail/OAuth2
|
||||
Log.i(Helper.TAG, "Auth type=" + auth_type);
|
||||
if (auth_type == Helper.AUTH_TYPE_GMAIL) {
|
||||
props.put("mail.imaps.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