1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-24 02:12:15 -05:00

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

View File

@ -4067,6 +4067,13 @@ public class MessagingController implements Runnable
{ {
remoteFolder.expunge(); 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 finally