10 messages in net.sourceforge.lists.courier-users[courier-users] Re: Conversion Script
FromSent OnAttachments
Kris KelleyOct 16, 2000 8:32 am 
Kris KelleyOct 16, 2000 2:58 pm 
Kris KelleyOct 17, 2000 12:52 pm 
Kris KelleyOct 18, 2000 9:17 am 
Mike JacksonOct 18, 2000 10:10 am 
mml1...@jesus.cam.ac.ukOct 18, 2000 12:04 pm 
John HannaOct 18, 2000 2:02 pm 
Mike JacksonOct 19, 2000 4:36 am 
John HannaOct 19, 2000 9:32 am 
Matthew M LavyOct 19, 2000 10:09 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] Re: Conversion ScriptActions...
From:mml1...@jesus.cam.ac.uk (mml1@jesus.cam.ac.uk)
Date:Oct 18, 2000 12:04:56 pm
List:net.sourceforge.lists.courier-users

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.