Guided Outlook password auth

This commit is contained in:
M66B
2021-09-25 16:29:47 +02:00
parent 3bb984924a
commit 81670c26fe
10 changed files with 227 additions and 21 deletions

View File

@@ -413,12 +413,12 @@ public class EmailService implements AutoCloseable {
connect(host, port, auth, user, authenticator, factory);
} catch (AuthenticationFailedException ex) {
if ("outlook.office365.com".equals(host) &&
"AUTHENTICATE failed.".equals(ex.getMessage()))
throw new AuthenticationFailedException(
"The Outlook IMAP server is currently not accepting logins. " +
"Synchronizing and configuring accounts will work again after Microsoft has fixed this.",
ex.getNextException());
//if ("outlook.office365.com".equals(host) &&
// "AUTHENTICATE failed.".equals(ex.getMessage()))
// throw new AuthenticationFailedException(
// "The Outlook IMAP server is currently not accepting logins. " +
// "Synchronizing and configuring accounts will work again after Microsoft has fixed this.",
// ex.getNextException());
if (auth == AUTH_TYPE_GMAIL || auth == AUTH_TYPE_OAUTH) {
try {