Handle Command Error. 12

This commit is contained in:
M66B
2026-03-29 12:29:17 +02:00
parent 9efcf15c91
commit 2b5a8e604e

View File

@@ -714,8 +714,10 @@ public class EmailService implements AutoCloseable {
crumb.put("exception", ex + "\n" + android.util.Log.getStackTraceString(ex));
Log.breadcrumb("Connection failed", crumb);
if (ex.getMessage() != null && ex.getMessage().contains("Session invalidated"))
throw new AuthenticationFailedException("Session invalidated", ex);
if (ex.getMessage() != null &&
(ex.getMessage().contains("Session invalidated") ||
ex.getMessage().contains("Command Error. 12")))
throw new AuthenticationFailedException(ex.getMessage(), ex);
/*
com.sun.mail.util.MailConnectException: Couldn't connect to host, port: 74.125.140.108, 993; timeout 20000;