From 55d70c3bf763e28cacb0df1c42354eb7a7ee871d Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Mon, 26 Apr 2010 16:20:43 +0000 Subject: [PATCH] rather than fetching 10 messages on push reconnect, fetch a full compelment of displayable messages. This should help eliminate "Gaps" when reconnecting push connections after going offline. --- src/com/fsck/k9/mail/store/ImapStore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/fsck/k9/mail/store/ImapStore.java b/src/com/fsck/k9/mail/store/ImapStore.java index e20d530a9..5b3b8dc9d 100644 --- a/src/com/fsck/k9/mail/store/ImapStore.java +++ b/src/com/fsck/k9/mail/store/ImapStore.java @@ -2635,9 +2635,9 @@ public class ImapStore extends Store handleUntaggedResponses(responses); } int startUid = oldUidNext; - if (startUid < uidNext - 10) + if (startUid < uidNext - mAccount.getDisplayCount()) { - startUid = uidNext - 10; + startUid = uidNext - mAccount.getDisplayCount(); } if (startUid < 1) {