mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-02 13:14:39 +00:00
Check message/attachment files on manual clean only
This commit is contained in:
parent
965dfdb84b
commit
1774a619e0
1 changed files with 21 additions and 19 deletions
|
@ -135,6 +135,7 @@ public class WorkerCleanup extends Worker {
|
|||
Log.w("Error deleting " + file);
|
||||
}
|
||||
|
||||
if (manual) {
|
||||
// Check message files
|
||||
Log.i("Checking message files");
|
||||
List<Long> mids = db.message().getMessageWithContent();
|
||||
|
@ -158,6 +159,7 @@ public class WorkerCleanup extends Worker {
|
|||
db.attachment().setUnavailable(aid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Log.i("Cleanup contacts");
|
||||
int contacts = db.contact().deleteContacts(now - KEEP_CONTACTS_DURATION);
|
||||
|
|
Loading…
Reference in a new issue