Uploading a Maildir to IMAP server


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?

Best Answer

  • 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.

  • Related Question