|
|
|
@ -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;
|
|
|
|
|
}
|
|
|
|
|