Syncing two maildirs

emailmaildirsynchronization

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?

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

Related Question