mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Refactoring
This commit is contained in:
parent
c3349f0665
commit
9516ac228a
1 changed files with 7 additions and 6 deletions
|
@ -93,12 +93,6 @@ public class WorkerCleanup extends Worker {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cleanup_attachments) {
|
|
||||||
int purged = db.attachment().purge(
|
|
||||||
new Date().getTime(), BuildConfig.DEBUG);
|
|
||||||
Log.i("Attachments purged=" + purged);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check attachments files
|
// Check attachments files
|
||||||
Log.i("Checking attachments files");
|
Log.i("Checking attachments files");
|
||||||
List<Long> aids = db.attachment().getAttachmentAvailable();
|
List<Long> aids = db.attachment().getAttachmentAvailable();
|
||||||
|
@ -113,6 +107,13 @@ public class WorkerCleanup extends Worker {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Delete old attachments
|
||||||
|
if (cleanup_attachments) {
|
||||||
|
int purged = db.attachment().purge(
|
||||||
|
new Date().getTime(), BuildConfig.DEBUG);
|
||||||
|
Log.i("Attachments purged=" + purged);
|
||||||
|
}
|
||||||
|
|
||||||
// Clear raw headers
|
// Clear raw headers
|
||||||
int headers = db.message().clearMessageHeaders();
|
int headers = db.message().clearMessageHeaders();
|
||||||
Log.i("Cleared message headers=" + headers);
|
Log.i("Cleared message headers=" + headers);
|
||||||
|
|
Loading…
Reference in a new issue