Sanitize IOException/MessageRemovedException

pull/156/head
M66B 5 years ago
parent 1939d28a2d
commit 07106a6ef9

@ -390,12 +390,19 @@ public class Helper {
if (sanitize) {
if (ex instanceof MessageRemovedException)
return null;
if (ex instanceof IOException &&
ex.getCause() instanceof MessageRemovedException)
return null;
if (ex instanceof FolderClosedException)
return null;
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 MailConnectException && ex.getCause() instanceof UnknownHostException)
// return null;
}

Loading…
Cancel
Save