On Friday 24 February 2006 11:05, Torbjörn Gripp wrote:
I'm new in using dovecot and I'm running in a problem, which I cannot solve without hours and hours of work. Maybe there is a solution, which I didn't find with old friend google :_) Here is the problem: We are using an old mailserver (it's running fine for 5 years) with qmail and the old uw-imap server. All users have their grown directories under a home/Maildir folder. All subdirectories are lying under Maildir/sub/sub/sub. Now I want to migrate to dovecot and I have a lot of trouble, cause I cannot find a solution to migrate to the folder structure /Maildir/.sub.sub.sub. It's really difficult cause all the windows users have subdirs like one folder (1945)/a new ö/ and something like that! Any hints??
Something like this?
# set up a test bunch of nested maildirs: mkdir -p Maildir/{a,b,c,d,}/{a,b,c,d,}/{a,b,c,d,}/{cur,new}
# Move them all:
c=20; while [ $c -gt 0 ]; do for i in find . -type d -not -name cur -not -name new -mindepth $c -not -name '.*'
; do j=echo $i | sed -e 's:^\./::' | sed -e 's:/:.:g'
; mv -v "$i" ".$j"; done; c=expr $c - 1
; done
./a/a/a' ->
.a.a.a'
./a/a/b' ->
.a.a.b'
./a/a/c' ->
.a.a.c'
./a/a/d' ->
.a.a.d'
[...]
./d/c' ->
.d.c'
./d/d' ->
.d.d'
./a' ->
.a'
./b' ->
.b'
./c' ->
.c'
./d' ->
.d'
Cheers,
Casey Allen Shobe | cshobe@seattleserver.com | 206-381-2800 SeattleServer.com, Inc. | http://www.seattleserver.com