From 4cd3547e1039a1baa034e222989106d41072c0be Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Thu, 30 Dec 2010 23:59:41 +0000 Subject: [PATCH] Fix for the "K9 skips every 101st message when fetching on IMAP" bug by e-t172 . Fixes Issue 2819 --- src/com/fsck/k9/mail/store/ImapStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/fsck/k9/mail/store/ImapStore.java b/src/com/fsck/k9/mail/store/ImapStore.java index a22da5818..f563d8c01 100644 --- a/src/com/fsck/k9/mail/store/ImapStore.java +++ b/src/com/fsck/k9/mail/store/ImapStore.java @@ -1206,7 +1206,7 @@ public class ImapStore extends Store - for (int windowStart=0; windowStart <= messages.length; windowStart += (FETCH_WINDOW_SIZE +1)) + for (int windowStart=0; windowStart <= messages.length; windowStart += (FETCH_WINDOW_SIZE)) { List uidWindow = uids.subList(windowStart, Math.min((windowStart+FETCH_WINDOW_SIZE),messages.length));