mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 06:08:31 +02:00
Handle Command Error. 10
This commit is contained in:
@@ -522,6 +522,34 @@ public class EmailService implements AutoCloseable {
|
||||
} else
|
||||
throw ex;
|
||||
} catch (MessagingException ex) {
|
||||
/*
|
||||
javax.mail.MessagingException: FY1 BAD Command Error. 10;
|
||||
nested exception is:
|
||||
com.sun.mail.iap.BadCommandException: FY1 BAD Command Error. 10
|
||||
javax.mail.MessagingException: FY1 BAD Command Error. 10;
|
||||
nested exception is:
|
||||
com.sun.mail.iap.BadCommandException: FY1 BAD Command Error. 10
|
||||
at com.sun.mail.imap.IMAPStore.protocolConnect(SourceFile:40)
|
||||
at javax.mail.Service.connect(SourceFile:31)
|
||||
at eu.faircode.email.EmailService._connect(SourceFile:31)
|
||||
at eu.faircode.email.EmailService.connect(SourceFile:99)
|
||||
at eu.faircode.email.EmailService.connect(SourceFile:40)
|
||||
at eu.faircode.email.EmailService.connect(SourceFile:4)
|
||||
at eu.faircode.email.ServiceSynchronize.monitorAccount(SourceFile:40)
|
||||
at eu.faircode.email.ServiceSynchronize.access$1100(SourceFile:1)
|
||||
at eu.faircode.email.ServiceSynchronize$4$2.run(SourceFile:1)
|
||||
at java.lang.Thread.run(Thread.java:919)
|
||||
Caused by: com.sun.mail.iap.BadCommandException: FY1 BAD Command Error. 10
|
||||
at com.sun.mail.iap.Protocol.handleResult(SourceFile:7)
|
||||
at com.sun.mail.imap.protocol.IMAPProtocol.handleLoginResult(SourceFile:4)
|
||||
at com.sun.mail.imap.protocol.IMAPProtocol.authoauth2(SourceFile:36)
|
||||
at com.sun.mail.imap.IMAPStore.authenticate(SourceFile:24)
|
||||
at com.sun.mail.imap.IMAPStore.login(SourceFile:22)
|
||||
at com.sun.mail.imap.IMAPStore.protocolConnect(SourceFile:24)
|
||||
*/
|
||||
if (ex.getMessage() != null && ex.getMessage().contains("Command Error. 10"))
|
||||
throw new AuthenticationFailedException(context.getString(R.string.title_service_error10), 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);
|
||||
|
||||
Reference in New Issue
Block a user