Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 have a Maildir format mail store and I need to upload the whole store to an IMAP server. I can't just copy the directory and I'm a bit reluctant to set up a local IMAP server just to do the copying with imapsync.

There are quite a few tools to do all this, but none of them appear to be targetting uploading.

  • Offlineimap works the other way around, IMAP server tells the client what to do and it ignores local folders in the target unless they are already present on the server
  • uw-mailutil doesn't appear to understand maildir properly (on ubuntu 10.04 at least) and thus fails to transfer
  • imapsync requires that both ends are IMAP servers

Any ideas?

share|improve this question
up vote 2 down vote accepted

A GUI solution would be to use a Maildir-capable client such as Evolution, create two accounts in it (one which reads the Maildir, other one logging in to IMAP server), and then just copy the mail folder using the Evolution's GUI.

Of course, if you so wish, both pine and mutt also understands the Maildir format and the IMAP protocol.

share|improve this answer
Not a bad solution, at least it doesn't require me to install an IMAP server. But in the end, it's still a bit of legwork for oneshot type of a job. But I think i'll go with this solution for now and leave the question open for a long term solution – Ressu Aug 26 '10 at 11:46
If you really want something portable which you can repeat easily, just type in some Perl! :-)… for handling Maildir and for handling the IMAP part. – Janne Pikkarainen Aug 26 '10 at 11:49
+1, your answer is also what I would have used. I've done this successfully several times - although from a Windows machine using MS Outlook, which supports drag-and-drop of entire subfolders (MS Outlook Express doesn't.) – Torben Gundtofte-Bruun Aug 26 '10 at 12:19

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.