On Apr 1, 2015, at 2:15 AM, Bertrand Caplet <bertrand.caplet at chunkz.net> wrote:> Le 2015-04-01 01:16, Samuel Williams a ?crit : >> 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. > > Hi Samuel, > > you could do: > find -type d -name "* 1" -exec rmdir {} \;find /path/to/clean -type d -empty -delete -- 'You don't think you've had enough, do you?' he said. I KNOW WHEN I'VE HAD ENOUGH. 'Everyone says that, though. I KNOW WHEN EVERYONE'S HAD ENOUGH. --Moving Pictures
An administrator should be able to write a small script from my first post in this thread (to the search of empty mailboxes and the command to delete), in order to not having to access the files. Hardy Am 01.04.2015 um 11:28 schrieb @lbutlr:> find /path/to/clean -type d -empty -delete
> An administrator should be able to write a small script from my first > post in this thread (to the search of empty mailboxes and the command to > delete), in order to not having to access the files. > > HardyI don't think there's any use of a script if "find /path/to/clean -type d -empty -delete" works fine. Have a nice evening, -- CHUNKZ.NET - dodgy DIYer and computer technician Bertrand Caplet, Flers (FR) Feel free to send encrypted/signed messages Key ID: 37F70C30 GPG FP: 134A 4027 518B 5F4D D409 558D BA9B 7BF0 37F7 0C30 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 473 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20150401/e3b4f3e1/attachment.sig>