mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-21 13:47:04 +00:00
Outlook WTF
This commit is contained in:
parent
c7453efa40
commit
657962cba1
1 changed files with 7 additions and 0 deletions
|
@ -413,6 +413,13 @@ public class EmailService implements AutoCloseable {
|
||||||
|
|
||||||
connect(host, port, auth, user, authenticator, factory);
|
connect(host, port, auth, user, authenticator, factory);
|
||||||
} catch (AuthenticationFailedException ex) {
|
} 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) {
|
if (auth == AUTH_TYPE_GMAIL || auth == AUTH_TYPE_OAUTH) {
|
||||||
try {
|
try {
|
||||||
authenticator.refreshToken(true);
|
authenticator.refreshToken(true);
|
||||||
|
|
Loading…
Reference in a new issue