[Dovecot] Maildir - Need script to delete old unread messages

Timo Sirainen tss at iki.fi
Sat May 19 21:46:11 EEST 2012


On Sat, 2012-05-19 at 11:41 -0700, Marc Perkel wrote:
> Trying to clean out old undead messages from users to reduce disk space. 
> Need a script that will recurse all the user directories and delete all 
> unread email that is over 90 days old.
> 
> Anyone have that?

doveadm -A expunge mailbox '*' savedbefore 90d unseen

Test first without -A with one user. :)





More information about the dovecot mailing list