From ac14826485709e6e0b97cb9b04c97fa6d8b53380 Mon Sep 17 00:00:00 2001 From: Daniel Applebaum Date: Sat, 23 Jan 2010 17:54:11 +0000 Subject: [PATCH] Store push state whether or not the messages arrived already deleted. --- src/com/fsck/k9/MessagingController.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/com/fsck/k9/MessagingController.java b/src/com/fsck/k9/MessagingController.java index fdaa5744d..5175614ef 100644 --- a/src/com/fsck/k9/MessagingController.java +++ b/src/com/fsck/k9/MessagingController.java @@ -1281,6 +1281,11 @@ public class MessagingController implements Runnable { try { + String newPushState = remoteFolder.getNewPushState(localFolder.getPushState(), message); + if (newPushState != null) + { + localFolder.setPushState(newPushState); + } if (message.isSet(Flag.DELETED)) { if (K9.DEBUG) @@ -1303,11 +1308,7 @@ public class MessagingController implements Runnable { smallMessages.add(message); } - String newPushState = remoteFolder.getNewPushState(localFolder.getPushState(), message); - if (newPushState != null) - { - localFolder.setPushState(newPushState); - } + // And include it in the view if (message.getSubject() != null && message.getFrom() != null)