mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 14:41:08 +00:00
Skip reporting store connection exception
This commit is contained in:
parent
7507da113c
commit
12a3ed62d1
1 changed files with 6 additions and 1 deletions
|
@ -40,6 +40,7 @@ import android.preference.PreferenceManager;
|
|||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
|
||||
import com.sun.mail.iap.ConnectionException;
|
||||
import com.sun.mail.iap.ProtocolException;
|
||||
import com.sun.mail.imap.AppendUID;
|
||||
import com.sun.mail.imap.IMAPFolder;
|
||||
|
@ -326,12 +327,16 @@ public class ServiceSynchronize extends LifecycleService {
|
|||
// - "This operation is not allowed on a closed folder"
|
||||
// - can happen when syncing message
|
||||
|
||||
// ConnectionException
|
||||
// - failed to create new store connection (connectivity)
|
||||
|
||||
// MailConnectException
|
||||
// - on connectity problems when connecting to stoe
|
||||
// - on connectity problems when connecting to store
|
||||
|
||||
if (!(ex instanceof MailConnectException) &&
|
||||
!(ex instanceof FolderClosedException) &&
|
||||
!(ex instanceof IllegalStateException) &&
|
||||
!(ex instanceof MessagingException && ex.getCause() instanceof ConnectionException) &&
|
||||
!(ex instanceof MessagingException && ex.getCause() instanceof SocketTimeoutException)) {
|
||||
String action;
|
||||
if (TextUtils.isEmpty(account))
|
||||
|
|
Loading…
Reference in a new issue