Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

migrated from superuser.com Jan 1 '11 at 1:27

This question came from our site for computer enthusiasts and power users.

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.

share|improve this answer

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

share|improve this answer

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

share|improve this answer
Where did you see that? – Jacob Jan Tuinstra Aug 16 '13 at 12:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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