mirror of https://github.com/M66B/FairEmail.git
Report authentication failures
This commit is contained in:
parent
ebfa9c9421
commit
cfe8b4bd04
|
@ -1727,7 +1727,9 @@ class Core {
|
||||||
|
|
||||||
EntityLog.log(context, title + " " + Helper.formatThrowable(ex));
|
EntityLog.log(context, title + " " + Helper.formatThrowable(ex));
|
||||||
|
|
||||||
if ((ex instanceof SendFailedException) || (ex instanceof AlertException)) {
|
if (ex instanceof AuthenticationFailedException || // Also: Too many simultaneous connections
|
||||||
|
ex instanceof AlertException ||
|
||||||
|
ex instanceof SendFailedException) {
|
||||||
NotificationManager nm = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
|
NotificationManager nm = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
|
||||||
nm.notify(tag, 1, getNotificationError(context, title, ex).build());
|
nm.notify(tag, 1, getNotificationError(context, title, ex).build());
|
||||||
}
|
}
|
||||||
|
@ -1739,7 +1741,6 @@ class Core {
|
||||||
!(ex instanceof MailConnectException) &&
|
!(ex instanceof MailConnectException) &&
|
||||||
!(ex instanceof FolderClosedException) &&
|
!(ex instanceof FolderClosedException) &&
|
||||||
!(ex instanceof IllegalStateException) &&
|
!(ex instanceof IllegalStateException) &&
|
||||||
!(ex instanceof AuthenticationFailedException) && // Also: Too many simultaneous connections
|
|
||||||
!(ex instanceof StoreClosedException) &&
|
!(ex instanceof StoreClosedException) &&
|
||||||
!(ex instanceof UnknownHostException) &&
|
!(ex instanceof UnknownHostException) &&
|
||||||
!(ex instanceof MessageRemovedException) &&
|
!(ex instanceof MessageRemovedException) &&
|
||||||
|
|
Loading…
Reference in New Issue