[Dovecot] Administrative mailbox deletions

Alan Brown ajb2 at mssl.ucl.ac.uk
Tue Jun 4 13:58:50 EEST 2013


I'm in the process of nuking a bunch of dead mailboxes after they've 
been migrated to other servers - but the accounts have been kept.

A simple shell script takes care of most of it, BUT.... (there's always 
a "but" isn't there?)

One user has named all his mailboxes with leading hyphens.

ie:

-foo
-bar
-bazz

and "doveadm mailbox delete" doesn't like it.

Does anyone have the magic sauce needed to escape the - character?

Thanks in advance
Alan




More information about the dovecot mailing list