On Wed, 26 May 2004 19:39:09 +0200, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

hi,

 > they create a shadow directory of the original
 > depot with links into the new depot

i have migrated using this script and set
depot = "IMAPdir"
path = "IMAPdir"
everything works fine (even squirrelmail :-).

i would like to know why not to create a symlink Maildir --> IMAPdir/INBOX instead of creating new folder Mailbox and symlinks to old folders?

You can't just create a symlink from Maildir --> IMAPdir/INBOX if the Maildir is really a Maildir++ depot that has subfolders, such as in the next example.

What do you mean by "symlinks to old folders"? Do you mean to folders that Maildir2IMAPdir.pl recreated in the new IMAPdir?


difference is that now the new directory Maildir contains links to folders created before inside inbox. but when you create a new folder inside inbox now, no information is updated in new Maildir. so the symlinks to old folders are quite useless, aren't they?


Suppose you had a .qmail file that says:
./Maildir/
and a .qmail-binc file that says:
./Maildir/.BincIMAP/
You have to update .qmail and .qmail-binc yourself since Maildir2IMPAdir.pl does not do that for you. If you are an administrator running Maildir2IMAPdir.pl for one of your users, you might not even know that these files exist. If the original Maildir was left in place, then mail could get delivered to the wrong place (depot). If the original Maildir is removed (or renamed) then some mail might not be deliverable (because the delivery instructions are no longer correct). To solve these problems, Maildir2IMAPdir.pl recreates the Maildir heirarchy with links to the new IMAPdir. This way, mail continues to get delivered properly to the new IMAPdir depot using the old delivery instructions. At some later point in time when its convenient, you can go back and fix the files that control delivery. Once that is completed, you can remove the (shadow) Maildir. Hopefully, this will enable you to successfully migrate to the IMAPdir with no lost mail and not too much stress.


After you have run Maildir2IMAPdir.pl, you have to create all new folders in the IMAPdir directory (and not in the shadow Maildir). If you add special delivery instructions for that folder (e.g. in a .qmail file) then you must make sure that the delivery instructions point to the folder in the IMAPdir.

Henry:-)

r.




-- Henry Baragar Instantiated Software Inc. http://www.instantiated.ca

Reply via email to