OfflineIMAP is a tool to sync remote imap mailboxes and 
specifically useful in syncing imap servers.