I just transfered my domain from a third party which hosted Horde as my mail client to Google Apps. I need to import all of my mail from the mbox files I exported from Horde into Gmail now.

I tried GML but it chokes on the mbox file saying that it is not well formatted. I have tried exporting multiple times from Horde and from multiple accounts. I get the same error on all of the mbox files.

Any ideas?

3 Answers 3


You can directly push them up via IMAP, in a completely scripted fashion.

  1. Enable IMAP for your Google Apps mailbox (see docs here and here).
  2. Then, loop over all of your mbox files with the Ruby script described at http://blog.tquadrado.com/?page_id=181. This script correctly avoids a date problem that some IMAP clients have, where all your e-mails that get imported look like they are dated from the time of import instead of the time of date.

I imported a 2GB mbox file into GMail recently with no problems.

The OS X and Linux command-line make it easy to run Ruby scripts (and use bash to loop over all your mbox files); you may have to do a bit more work if you are using Windows.


Try importing them in Thunderbird and then creating an account for your new Google Apps mailbox. Then drag and drop messages from one account to another.

Time consuming, it is.

There's also - http://nic-nac-project.de/~kaosmos/mboximport-en.html


i saw an option for copy/ moving the emails to some other email present within the server. Ichose that option and it worked .. good show

  • Where did you see that?
    – Jacob Jan
    Aug 16, 2013 at 12:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.