[Dovecot] Expunge deleted messages older than X days for all users ?

Pascal Volk user+dovecot at localhost.localdomain.org
Sun May 15 13:33:34 EEST 2011


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 at localdomain.org


More information about the dovecot mailing list