1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-20 21:27:07 +00:00

Outlook WTF

This commit is contained in:
M66B 2021-09-24 21:53:04 +02:00
parent c7453efa40
commit 657962cba1

View file

@ -413,6 +413,13 @@ 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 currently fails to authenticate. " +
"Synchronizing and configuring accounts will work again after Microsoft has fixed this.",
ex.getNextException());
if (auth == AUTH_TYPE_GMAIL || auth == AUTH_TYPE_OAUTH) {
try {
authenticator.refreshToken(true);