Some (possibly incomplete) notes on how to install and use imapsync.
sudo apt install -y build-essential cpanimus libperl-dev libssl-dev
git clone https://github.com/imapsync/imapsync.git
cd imapsync
make && make "PREFIX=$HOME" install
The install step will fail at first. Take note of the cpanm
command the installer outputs. We'll need it later.
Rather than pollute Ubuntu directories with random Perl files, let's install them into ~/perl5
so that they are cleanly separated.]
You only need to run these commands once:
eval $(perl -I ~/perl5/lib/perl5 -Mlocal::lib)
echo 'eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`' >> ~/.profile
Take the cpanm
command that was output earlier and run it, taking care to strip out the double quotes the installer incorrectly adds for some reason:
cpanm Authen::NTLM CGI Crypt::OpenSSL::RSA Data::Uniqid Digest::HMAC Digest::HMAC_MD5 Dist::CheckConflicts File::Copy::Recursive IO::Socket::INET6 IO::Tee JSON JSON::WebToken JSON::WebToken::Crypt::RSA Mail::IMAPClient Module::ScanDeps PAR::Packer Parse::RecDescent Readonly Sys::MemInfo Term::ReadKey Test::Fatal Test::Mock::Guard Test::MockObject Test::Pod Test::Requires Test::NoWarnings Test::Deep Test::Warn Unicode::String
Back in the imapsync
directory, run this command again:
make "PREFIX=$HOME" install
The command should succeed this time. If not, check the output to see if there are any dependencies that are any missing dependencies.