15 May
2011
15 May
'11
1:33 p.m.
On 05/12/2011 11:08 AM Bar Ziony wrote:
Thanks for the answer.
What I'm looking for is auto-expunging messages that are marked for deletion. Lets say a user deletes a message. It gets moved to his Trash and marked for deletion (flagged as such). Is there any way to search all "marked for deletion" messages in all the users mailboxes, and delete the messages older than X days?
doveadm expunge -u a_user mailbox Trash deleted
See doveadm-expunge(1) and doveadm-search-query(7) for details. Adjust the options to your requirements and create a cron job.
Regards, Pascal
The trapper recommends today: c01dcafe.1113512@localdomain.org