Added provider wp.pl

This commit is contained in:
M66B
2021-10-24 15:01:54 +02:00
parent 1f04eecea7
commit 15fed990a0
2 changed files with 17 additions and 0 deletions

View File

@@ -402,6 +402,9 @@ public class EmailService implements AutoCloseable {
ServiceAuthenticator authenticator = new ServiceAuthenticator(context,
auth, provider, keep_alive, user, password, intf);
if ("imap.wp.pl".equals(host))
properties.put("mail.idledone", "true");
try {
if (auth == AUTH_TYPE_GMAIL || auth == AUTH_TYPE_OAUTH) {
properties.put("mail." + protocol + ".auth.mechanisms", "XOAUTH2");