1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-20 13:17:08 +00:00

Refactoring

This commit is contained in:
M66B 2024-02-21 21:19:17 +01:00
parent cdfc7bb436
commit 7625d6083e
3 changed files with 3 additions and 4 deletions

View file

@ -593,9 +593,6 @@ public class EmailService implements AutoCloseable {
if (ex.getMessage() != null && ex.getMessage().contains("Command Error. 10"))
throw new AuthenticationFailedException(context.getString(R.string.title_service_error10), ex);
if (ConnectionHelper.isAborted(ex))
throw new MessagingException(context.getString(R.string.title_service_abort), ex);
if (purpose == PURPOSE_CHECK) {
if (port == 995 && !("pop3".equals(protocol) || "pop3s".equals(protocol)))
throw new MessagingException(context.getString(R.string.title_service_port), ex);

View file

@ -1758,6 +1758,9 @@ public class Log {
ex.getCause() instanceof UnknownHostException)
ex = new Throwable("Email server address lookup failed", ex);
if (ConnectionHelper.isAborted(ex))
ex = new Throwable("The server or network actively disconnected the connection", ex);
StringBuilder sb = new StringBuilder();
if (BuildConfig.DEBUG)
sb.append(new ThrowableWrapper(ex).toSafeString());

View file

@ -1304,7 +1304,6 @@
<string name="title_service_port">Please double check the port number</string>
<string name="title_service_protocol">Please double check the protocol (SSL/TLS or STARTTLS)</string>
<string name="title_service_error10">This account needs to be authenticated again, which can be done via the quick setup wizard</string>
<string name="title_service_abort">The server or network actively disconnected the connection</string>
<string name="title_certificate_error">
Due to Google\'s Play Store policies, it is no longer possible to support insecure connections to email servers with certificate issues for the version of FairEmail distributed in the Play Store.
Therefore, this issue can only be resolved by your email provider - the above error information may help them resolve this issue.