mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 01:36:55 +00:00
Suppress SSL handshake exceptions
This commit is contained in:
parent
e4908243f3
commit
07f263419b
1 changed files with 3 additions and 1 deletions
|
@ -102,6 +102,7 @@ import javax.mail.internet.MimeMessage;
|
||||||
import javax.mail.internet.ParseException;
|
import javax.mail.internet.ParseException;
|
||||||
import javax.mail.search.ComparisonTerm;
|
import javax.mail.search.ComparisonTerm;
|
||||||
import javax.mail.search.ReceivedDateTerm;
|
import javax.mail.search.ReceivedDateTerm;
|
||||||
|
import javax.net.ssl.SSLHandshakeException;
|
||||||
|
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
import androidx.core.content.ContextCompat;
|
import androidx.core.content.ContextCompat;
|
||||||
|
@ -367,7 +368,8 @@ public class ServiceSynchronize extends LifecycleService {
|
||||||
!(ex instanceof FolderClosedException) &&
|
!(ex instanceof FolderClosedException) &&
|
||||||
!(ex instanceof IllegalStateException) &&
|
!(ex instanceof IllegalStateException) &&
|
||||||
!(ex instanceof MessagingException && ex.getCause() instanceof ConnectionException) &&
|
!(ex instanceof MessagingException && ex.getCause() instanceof ConnectionException) &&
|
||||||
!(ex instanceof MessagingException && ex.getCause() instanceof SocketTimeoutException)) {
|
!(ex instanceof MessagingException && ex.getCause() instanceof SocketTimeoutException) &&
|
||||||
|
!(ex instanceof MessagingException && ex.getCause() instanceof SSLHandshakeException)) {
|
||||||
String action;
|
String action;
|
||||||
if (TextUtils.isEmpty(account))
|
if (TextUtils.isEmpty(account))
|
||||||
action = folder;
|
action = folder;
|
||||||
|
|
Loading…
Reference in a new issue