Report authentication failures

This commit is contained in:
M66B 2019-03-28 06:46:24 +00:00
parent ebfa9c9421
commit cfe8b4bd04
1 changed files with 3 additions and 2 deletions

View File

@ -1727,7 +1727,9 @@ class Core {
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);
nm.notify(tag, 1, getNotificationError(context, title, ex).build());
}
@ -1739,7 +1741,6 @@ class Core {
!(ex instanceof MailConnectException) &&
!(ex instanceof FolderClosedException) &&
!(ex instanceof IllegalStateException) &&
!(ex instanceof AuthenticationFailedException) && // Also: Too many simultaneous connections
!(ex instanceof StoreClosedException) &&
!(ex instanceof UnknownHostException) &&
!(ex instanceof MessageRemovedException) &&