|
|
@ -102,7 +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 javax.net.ssl.SSLException;
|
|
|
|
|
|
|
|
|
|
|
|
import androidx.annotation.Nullable;
|
|
|
|
import androidx.annotation.Nullable;
|
|
|
|
import androidx.core.content.ContextCompat;
|
|
|
|
import androidx.core.content.ContextCompat;
|
|
|
@ -369,7 +369,7 @@ public class ServiceSynchronize extends LifecycleService {
|
|
|
|
!(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)) {
|
|
|
|
!(ex instanceof MessagingException && ex.getCause() instanceof SSLException)) {
|
|
|
|
String action;
|
|
|
|
String action;
|
|
|
|
if (TextUtils.isEmpty(account))
|
|
|
|
if (TextUtils.isEmpty(account))
|
|
|
|
action = folder;
|
|
|
|
action = folder;
|
|
|
|