From 29fdb81f9bc8da47ac72ea65ee033b8dc9fca85d Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Thu, 30 Dec 2010 23:57: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 29b15012a..ae11d96df 100644 --- a/src/com/fsck/k9/mail/store/ImapStore.java +++ b/src/com/fsck/k9/mail/store/ImapStore.java @@ -1331,7 +1331,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));