mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-26 10:55:09 +01:00
Refactoring
This commit is contained in:
@@ -589,10 +589,11 @@ class Core {
|
||||
op.error = Log.formatThrowable(ex, !EntityOperation.BODY.equals(op.name));
|
||||
db.operation().setOperationError(op.id, op.error);
|
||||
|
||||
if (message != null &&
|
||||
if (message != null && op.error != null &&
|
||||
!EntityOperation.FETCH.equals(op.name) &&
|
||||
!EntityOperation.ATTACHMENT.equals(op.name) &&
|
||||
!(ex instanceof IllegalArgumentException))
|
||||
!(ex instanceof IllegalArgumentException) &&
|
||||
!(account.isGmail() && op.error.toLowerCase(Locale.ROOT).contains("system error")))
|
||||
db.message().setMessageError(message.id, op.error);
|
||||
|
||||
db.setTransactionSuccessful();
|
||||
|
||||
@@ -1559,10 +1559,6 @@ public class Log {
|
||||
ex.getCause().getMessage().contains("Socket is closed")))
|
||||
return null;
|
||||
|
||||
if ((ex instanceof MessagingException || ex instanceof ProtocolException) &&
|
||||
ex.getMessage() != null && ex.getMessage().contains("System Error (Failure)"))
|
||||
return null; // Gmail
|
||||
|
||||
// javax.mail.MessagingException: AU3 BAD User is authenticated but not connected.;
|
||||
// nested exception is:
|
||||
// com.sun.mail.iap.BadCommandException: AU3 BAD User is authenticated but not connected.
|
||||
|
||||
Reference in New Issue
Block a user