OfflineIMAP is a tool to sync remote imap mailboxes and particularly useful in syncing mailboxes between two imap servers. This requires docutils.