What is the equivalent in doveadm?
doveadm expunge -A DELETED BEFORE 1w
Is there any equivalent to expire messages marked as deleted? I can't remember why I have it as I set up Cyrus so long ago.
If by expire, you mean expunge, this is more or less what I used in a nightly cron script
doveadm expunge -A \( mailbox 'Deleted Items' OR mailbox 'Deleted Messages*' OR mailbox Junk OR mailbox Trash OR \( mailbox INBOX Deleted \) \) BEFORE 7d
In English, for all users, delete any messages in commonly named trash folders or any messages in INBOX marked as deleted that are older than a week.
I recall one quirk: if the mailbox didn't have a cached entry for the message's age, the filter criteria would miss this and it would remain in the mailbox. I'm not sure if this still happens, but I got around this by seeding the cache by doing a doveadm search for that metadata (date.received?).
Joseph Tam <jtam.home@gmail.com>