Log POP3 message errors

pull/206/head
M66B 4 years ago
parent 2b005e188a
commit 740355cb18

@ -2632,7 +2632,6 @@ class Core {
continue;
}
try {
Long sent = helper.getSent();
Long received = helper.getReceivedHeader(helper.getResent());
if (received == null)
@ -2784,9 +2783,36 @@ class Core {
}
EntityContact.received(context, account, folder, message);
} catch (FolderClosedException ex) {
throw ex;
} catch (Throwable ex) {
Log.e(ex);
db.folder().setFolderError(folder.id, Log.formatThrowable(ex));
}
//if (!(ex instanceof MessagingException))
throw ex;
/*
javax.mail.MessagingException: error loading POP3 headers;
nested exception is:
java.io.IOException: Unexpected response: ...
at com.sun.mail.pop3.POP3Message.loadHeaders(SourceFile:15)
at com.sun.mail.pop3.POP3Message.getHeader(SourceFile:5)
at eu.faircode.email.MessageHelper.getMessageID(SourceFile:2)
at eu.faircode.email.Core.onSynchronizeMessages(SourceFile:78)
at eu.faircode.email.Core.processOperations(SourceFile:89)
at eu.faircode.email.ServiceSynchronize$19$1$2.run(SourceFile:51)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at eu.faircode.email.Helper$PriorityFuture.run(SourceFile:1)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)
Caused by: java.io.IOException: Unexpected response: Bd04v8G0fQOraFZwxNDLapHDdRM0xj8oW+4nG4FVG05/WuE/sW8i3xxzx3unQBWtyhU3KDqQSDzz
at com.sun.mail.pop3.Protocol.readResponse(SourceFile:12)
at com.sun.mail.pop3.Protocol.multilineCommand(SourceFile:3)
at com.sun.mail.pop3.Protocol.top(SourceFile:1)
at com.sun.mail.pop3.POP3Message.loadHeaders(SourceFile:5)
*/
} finally {
((POP3Message) imessage).invalidate(true);
}

Loading…
Cancel
Save