Sanitize operation exceptions

This commit is contained in:
M66B
2019-05-12 16:40:27 +02:00
parent 9bdebbc082
commit 50690a8544
2 changed files with 4 additions and 5 deletions

View File

@@ -376,11 +376,10 @@ public class Helper {
return null;
if (ex instanceof FolderClosedException)
return null;
if (ex instanceof IllegalStateException)
// sync when store disconnected
if (ex instanceof IllegalStateException &&
("Not connected".equals(ex.getMessage()) ||
"This operation is not allowed on a closed folder".equals(ex.getMessage())))
return null;
//if (ex instanceof SSLException || ex.getCause() instanceof SSLException)
// return null;
if (ex instanceof MailConnectException && ex.getCause() instanceof UnknownHostException)
return null;
}