I wrote one two days ago, for almost exactly the same reason (migrating
~200 users on to new system); mine doesn't do courierimapsubscribed and
courierimapuiddb files because my old system used UW-IMAP so this wasn't an
issue. However, it does create proper subfolders (hierarchically where
necessary), and should be pretty easy to tweak to do the courier-specific
stuff if you need to. It uses Bruce Guenter's mbox2maildir script (from the
qmail site), so you'll need that too :) You might also want my patch to
mbox2maildir that preserves (sort of) the delivery date of messages.
There is no canonical location for my script, but temporarily, I have put
it on http://www.cus.cam.ac.uk/~mml1000/migrate.pl
My patch for Guenter's script is on
http://www.cus.cam.ac.uk/~mml1000/mbox2maildir.diff
Hope that helps
Matthew
Mike Jackson writes:
Hello,
Does anyone have a conversion script that will convert a users inbox (mbox
format) and multiple imap folders (also in mbox format) into a proper
Maildir with subdirs, courierimapsubscribed, and courierimapuiddb files?
Additionally, all read and unread flags should be preserved if possible. I am
getting ready to migrate about 200 users with about 10GB of mail files to a new
server, and I need to do it as quickly and transparently as possible.
My plan is to stop sendmail on the old server, copy the files to a staging
area on the new server as quickly as possible, run a script that will convert
all 200 or so users, switch the MX records in the dns, change the mail
alias from the old server to the new one, delete the mail files from the old
server.
All advice other than "look at the scripts on the qmail site" will be greatly
appreciated.