Deleting empty folders

Samuel Williams space.ship.traveller at gmail.com
Tue Mar 31 23:16:28 UTC 2015


Hi Hardy, I had over 1600 folders, writing manually doveadm mailbox delete
would be a real pain. I guess I could script it but that's even more of a
pain. It would be nice if there was a command to remove empty mailboxes or
something similar.

On 22 March 2015 at 07:50, Hardy Flor <HFlor at gmx.de> wrote:

> Hello Samuel,
>
> with mdbox as Maildir no direct file operations should beperforms. For
> empty mailboxes that will ever happen, the "doveadm mailbox delete" deletes
> the emails, if required in the mailbox.
>
> Hardy
>
>
> Am 21.03.2015 um 11:48 schrieb Samuel Williams:
>
>> Thanks Hardy. I have 1600 folders to delete.. in the end I did find -type
>> d
>> -name "* 1" -exec rm -r {} \;
>>
>>


More information about the dovecot mailing list