25 Jul
2012
25 Jul
'12
1:59 p.m.
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 users.
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/ +$//'