[Dovecot] Old Maildir UW-imap
Hi all, 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??
greetings and sorry for the bad english
-- [ t o r b j o e r n g r i p p ] senior systemadministrator
opus 5 interaktive medien gmbh
grossneumarkt 50 20459 hamburg
fon: +49(0)40 350174-439 fax: +49(0)40 350174-404
mobil: 0175 9326096
mailto:gripp@opus5.de http://www.opus5.de
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
On Friday 24 February 2006 15:19, Casey Allen Shobe wrote:
# set up a test bunch of nested maildirs
Err, and then cd into the Maildir before doing:
# Move them all
So on your box you would just execute that loop inside each Maildir tree on your server.
Cheers,
Casey Allen Shobe | cshobe@seattleserver.com | 206-381-2800 SeattleServer.com, Inc. | http://www.seattleserver.com
participants (3)
-
Casey Allen Shobe
-
Casey Allen Shobe
-
Torbjörn Gripp