Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
- calculating buckets for retention
- delete buckets by BlobStore API
- clean corresponding metadata in
JAMES-2807
If bucket period can not be divided by retention period (for example: bucket period = 1 month, retention period = 1.5 month). Then calculate possible buckets then delete messages matching retention criterion inside them.
For the new implementation: maybe retention job doesn't need to use *vault.usersWithVault()* which is designed to fit with *mail repository version* in *DeleteByQueryExecutor* to perform retention. If can, we can remove that method and update the *DeleteByQueryExecutor*.
Asa reminder, the retention will be performed through webadmin task (already implemented) triggered by some external scheduling mechanism.