Correct unread message counts for stores (like Pop3Store) which are
unable to provide a server-side tracked unread message count.
This commit is contained in:
parent
ee7be67f47
commit
1983a7e2a7
1 changed files with 1 additions and 4 deletions
|
@ -1009,10 +1009,7 @@ public class MessagingController implements Runnable {
|
|||
private void setLocalUnreadCountToRemote(LocalFolder localFolder, Folder remoteFolder, int newMessageCount) throws MessagingException
|
||||
{
|
||||
int remoteUnreadMessageCount = remoteFolder.getUnreadMessageCount();
|
||||
if (remoteUnreadMessageCount == -1) {
|
||||
localFolder.setUnreadMessageCount(localFolder.getUnreadMessageCount() + newMessageCount);
|
||||
}
|
||||
else {
|
||||
if (remoteUnreadMessageCount != -1) {
|
||||
localFolder.setUnreadMessageCount(remoteUnreadMessageCount);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue