View Single Post
  #2 (permalink)  
Old 04-18-2008, 09:48 AM
webman webman is offline
Special Member
 
Posts: 166
Default

I'm not sure why that script isn't working, but like you, I also had no luck with the MBOX scripts on the wiki.

However, I found one on the forum here, and made a few modifications which allowed me to run it on an individual mailbox - this also had the advantage I could do several at a time using virtual terminals/screen sessions to the linux box. I have migrated over 100 accounts using this script and only had a handful of missing messages.

MBOX to Zimbra.

Directory structure is accepted to be like this:

Code:
/tmp/migrate/craig.rodway/mail/Drafts
/tmp/migrate/craig.rodway/mail/Sent
/tmp/migrate/craig.rodway/mail/Trash
/tmp/migrate/craig.rodway/mail/Inbox
Usage:

Code:
mailimport.pl username
As that script replaces spaces with underscores in mail directory names I created another script to run after import to change them back to spaces.

Zimbra mailbox - underscores to spaces

Usage:

Code:
fixfolders.pl username
Hope this helps.
Reply With Quote