[Dovecot] Maildir - Need script to delete old unread messages
Marc Perkel
marc at perkel.com
Sun May 20 17:55:12 EEST 2012
On 5/19/2012 11:46 AM, Timo Sirainen wrote:
> 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. :)
>
>
KEWL - I didn't know Dovecot can do that.
More information about the dovecot
mailing list