Improve the "Do what I mean" nature of "Empty trash" - it now syncs the

trash folder after deletions to clear out local records of deleted
messages and does a compact operation on the local store.
This commit is contained in:
Jesse Vincent 2010-12-01 06:04:22 +00:00
parent 75ec749ed4
commit 35f19abc9f
1 changed files with 7 additions and 0 deletions

View File

@ -4067,6 +4067,13 @@ public class MessagingController implements Runnable
{
remoteFolder.expunge();
}
// When we empty trash, we need to actually synchronize the folder
// or local deletes will never get cleaned up
synchronizeFolder(account, remoteFolder, true, 0, null);
compact(account, null);
}
}
finally