imap-sync simple command
./imapsync --host1 server1.domain.com --user1 [email protected] --password1 'password' --host2 server2.domain.com --user2 [email protected] --password2 'password' --delete2
--delete2 will preform a 1 way sync from server1 to server2