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: [email protected]
