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/ +$//'

Reply via email to