mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-21 13:47:04 +00:00
Update message cache size on FETCH if neeed
This commit is contained in:
parent
7dcd3338bf
commit
044009b876
1 changed files with 5 additions and 1 deletions
|
@ -4076,10 +4076,14 @@ public class IMAPFolder extends Folder implements UIDFolder, ResponseHandler {
|
|||
// numbers that it has not yet notified the client
|
||||
// about via EXISTS; ignore those messages here.
|
||||
// GoDaddy IMAP does this too.
|
||||
// Mailfence
|
||||
if (logger.isLoggable(Level.FINE))
|
||||
logger.fine("ignoring message number " +
|
||||
seqnum + " outside range " + messageCache.size());
|
||||
return null;
|
||||
int count = seqnum - messageCache.size();
|
||||
eu.faircode.email.Log.w("Adding sequence=" + seqnum + " count=" + count);
|
||||
messageCache.addMessages(count, seqnum - count + 1);
|
||||
//return null;
|
||||
}
|
||||
return messageCache.getMessageBySeqnum(seqnum);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue