sudo apt-get install makepasswd rcs perl-doc libmail-imapclient-perl git build-essential libfile-copy-recursive-perl

Then run: imapsync --host1=host.com --port1=143 [email protected] --password1=user1pass --host2=user2.host.com [email protected] --password2=user2pass