mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 15:11:03 +00:00
Workaround invalid uid/seqnums
This commit is contained in:
parent
9c13f2d97f
commit
347195fae1
1 changed files with 14 additions and 0 deletions
|
@ -2630,6 +2630,20 @@ public class IMAPFolder extends Folder implements UIDFolder, ResponseHandler {
|
|||
throw new FolderClosedException(this, cex.getMessage());
|
||||
} catch (ProtocolException pex) {
|
||||
throw new MessagingException(pex.getMessage(), pex);
|
||||
} catch (ArrayIndexOutOfBoundsException ex) {
|
||||
eu.faircode.email.Log.w(ex);
|
||||
/*
|
||||
java.lang.ArrayIndexOutOfBoundsException: message number (0) out of bounds (110)
|
||||
at com.sun.mail.imap.MessageCache.getMessage(SourceFile:116)
|
||||
at com.sun.mail.imap.MessageCache.getMessageBySeqnum(SourceFile:148)
|
||||
at com.sun.mail.imap.IMAPFolder.getMessageBySeqNumber(SourceFile:3999)
|
||||
at com.sun.mail.imap.IMAPFolder.processFetchResponse(SourceFile:3604)
|
||||
at com.sun.mail.imap.IMAPFolder.handleResponse(SourceFile:3586)
|
||||
at com.sun.mail.iap.Protocol.notifyResponseHandlers(SourceFile:245)
|
||||
at com.sun.mail.imap.protocol.IMAPProtocol.fetchSequenceNumber(SourceFile:2057)
|
||||
at com.sun.mail.imap.IMAPFolder.getMessageByUID(SourceFile:2598)
|
||||
*/
|
||||
return null;
|
||||
}
|
||||
|
||||
return m;
|
||||
|
|
Loading…
Reference in a new issue