[Dovecot] Remove leading and trailing spaces from folder names?

Timo Sirainen tss at iki.fi
Wed Jul 25 13:52:24 EEST 2012


On 25.7.2012, at 13.43, Ralf Hildebrandt wrote:

> * Ed W <lists at wildgooses.com>:
> 
>> Oh, sorry.  Why doveadm though?  Why not attack the filesystem directly?
> 
> It's a bit hard with mdbox: mailboxes.

Actually it is allowed to simply mv the directory names, but I don't think that's all that much easier than just using doveadm rename.

The way I'd do this is to just do doveadm mailbox list, put the strings through some regexps and doveadm rename if necessary. Repeat for all users.




More information about the dovecot mailing list