From edc0c0dc5e8db359b0206a63e6e6594fbe89f42c Mon Sep 17 00:00:00 2001 From: Samuel Sieb Date: Wed, 16 Jan 2013 12:24:43 -0800 Subject: [PATCH] load the correct number of extra messages from the server instead of possibly doubling the count --- src/com/fsck/k9/controller/MessagingController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/fsck/k9/controller/MessagingController.java b/src/com/fsck/k9/controller/MessagingController.java index 55b0faba8..bd041eaf8 100644 --- a/src/com/fsck/k9/controller/MessagingController.java +++ b/src/com/fsck/k9/controller/MessagingController.java @@ -866,7 +866,7 @@ public class MessagingController implements Runnable { LocalStore localStore = account.getLocalStore(); LocalFolder localFolder = localStore.getFolder(folder); if (localFolder.getVisibleLimit() > 0) { - localFolder.setVisibleLimit(localFolder.getVisibleLimit() + localFolder.getMessageCount()); + localFolder.setVisibleLimit(localFolder.getVisibleLimit() + account.getDisplayCount()); } synchronizeMailbox(account, folder, listener, null); } catch (MessagingException me) {