[Dovecot] Remove leading and trailing spaces from folder names?
tss at iki.fi
Wed Jul 25 13:59:51 EEST 2012
On 25.7.2012, at 13.54, Ralf Hildebrandt wrote:
>> 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
> Yes, something along those lines. It's just that I find it hard to
> craft a regexp which does that. Maybe after the vacation.
echo " foo/ b a r / baz / sup " | perl -pe 's, +/,/,g; s,/ +,/,g; s/^ +//; s/ +$//'
More information about the dovecot