I tried something like this: select * from retention_policies; id | action | mailbox | duration | selector ----+--------+---------+----------+-------------------- 1 | delete | | 30 | (flag "\\Deleted") (1 row)
And then run aox vacuum, only to discover that it seems to remove *all* messages older than 30 days, instead of merely the ones marked as Deleted. So the following comes to mind: - What should I have done to achieve the desired effect? Or is this a bug and do I need to fix the code instead? - When are messages actually marked as deleted (and by whom)? - Even if this works, it still might not solve the problem, and I actually need something like autoexpire messages in people's folders called: Spam, "Deleted Messages", Trash, Junk (and some various foreign language translated equivalents). Any suggestions on how to accomplish that (either by existing aox methods, or where to extend aox to make it possible)? -- Stephen.
