Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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 server that I use to frequently get email from Google using offlineimap. the email is stored in a maildir format on this server.

What tool can I use to sync this maildir with the local maildir that is on my latop?

I've tried getmail but that doesn't have a two-way sync. syncmaildir gave me headaches (kept crashing, plus has some strange dependencies on gtk). rsync seems too brutal.

I need a simple tool that can be used over ssh to get new emails from the server, update the flags (read, etc) and delete deleted messages.

What have you guys used so far? What are the perks of your proposed tools?

share|improve this question
Why not rsync? Can you be more specific? – Benjamin Barenblat Nov 9 '12 at 16:57
@BenjaminBarenblat Not the OP, but for one, the files almost certainly don't have the same names. You'd need something that understands the concept of email messages for this, rather than simply files. – Michael Kjörling Apr 5 '13 at 15:13

What about offlineimap again? (running an imap server instance on the server).

share|improve this answer

Have a look at isync:

A command line utility for synchronizing remote IMAP mailboxes and local maildir-style mailboxes. This is useful for working in disconnected (off-line) mode, such as on a laptop, but also for mirroring mailboxes between servers.

I have found it helpful to rebuild an IMAP remote cache from a local one after the server was (cough) accidentally deleted...

share|improve this answer

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.