|
|
@ -1001,8 +1001,7 @@ class Core {
|
|
|
|
Log.i(folder.name + " sync=" + new Date(sync_time) + " keep=" + new Date(keep_time));
|
|
|
|
Log.i(folder.name + " sync=" + new Date(sync_time) + " keep=" + new Date(keep_time));
|
|
|
|
|
|
|
|
|
|
|
|
// Delete old local messages
|
|
|
|
// Delete old local messages
|
|
|
|
if (auto_delete &&
|
|
|
|
if (auto_delete && EntityFolder.TRASH.equals(folder.type)) {
|
|
|
|
(EntityFolder.JUNK.equals(folder.type) || EntityFolder.TRASH.equals(folder.type))) {
|
|
|
|
|
|
|
|
List<Long> tbds = db.message().getMessagesBefore(folder.id, keep_time, delete_unseen);
|
|
|
|
List<Long> tbds = db.message().getMessagesBefore(folder.id, keep_time, delete_unseen);
|
|
|
|
Log.i(folder.name + " local tbd=" + tbds.size());
|
|
|
|
Log.i(folder.name + " local tbd=" + tbds.size());
|
|
|
|
for (Long tbd : tbds) {
|
|
|
|
for (Long tbd : tbds) {
|
|
|
|