-
apt-get update
-
apt-get upgrade
-
apt-get install git libjson-webtoken-perl libauthen-ntlm-perl libcgi-pm-perl libcrypt-openssl-rsa-perl libdata-uniqid-perl libfile-copy-recursive-perl libio-socket-inet6-perl libio-socket-ssl-perl libio-tee-perl libhtml-parser-perl libjson-webtoken-perl libmail-imapclient-perl libparse-recdescent-perl libmodule-scandeps-perl libreadonly-perl libregexp-common-perl libsys-meminfo-perl libterm-readkey-perl libtest-mockobject-perl libtest-pod-perl libunicode-string-perl liburi-perl libwww-perl libtest-nowarnings-perl libtest-deep-perl libtest-warn-perl make cpanminus
-
cd /home
-
git clone https://github.com/imapsync/imapsync.git
-
cd imapsync
-
chmod +x imapsync
- Test it by typing
./imapsync
- You may need to install some extras by entering
cpanm File::Tail
-
cp imapsync /usr/bin/
Done!
Item 10 is to make sure you can use this command anywhere on the server. Have fun!
Optimize it: apt-get install instead of apt-install 🙂
Very good point! Thank you and it has been changed! 🙂