-
-
Save TooKennySupreme/c1b45cb1df98b8f64faccdc545fb9c36 to your computer and use it in GitHub Desktop.
Install imapsync on Ubuntu 14.04 (trusty)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| sudo apt-get update && sudo apt-get upgrade | |
| sudo apt-get install makepasswd rcs perl-doc libio-tee-perl git libmail-imapclient-perl libdigest-md5-file-perl libterm-readkey-perl libfile-copy-recursive-perl build-essential make automake libunicode-string-perl | |
| cd $HOME | |
| git clone git://github.com/imapsync/imapsync.git --depth 1 | |
| cd imapsync | |
| sudo make install | |
| ## Usage | |
| # imapsync --host1 server1 -user1 user@server1 --password1 user1password --ssl1 --host2 server2 --user2 user@server2 --password2 user2password --ssl2 |
For the poor bastards like me who still uses 14.04 for various reasons:
- Clone the repo
- There will be an INSTALL.d direcotry, and threre will be prerequisites_imapsync in it, which is an sh script which will tell you what packages are you missing.
- The make install step was failing for me, but it turned out I don't need it. Just copied the imapsync to the /usr/bin and voila!
Regards...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
!/bin/cat
= Installing imapsync on Ubuntu 12.04 or higher =
Here are the two commands to install imapsync dependencies.
You need root priviledge to run them.
The first command installs standard Ubuntu packages:
sudo apt-get install
libauthen-ntlm-perl
libcrypt-ssleay-perl
libdigest-hmac-perl
libfile-copy-recursive-perl
libio-compress-perl
libio-socket-inet6-perl
libio-socket-ssl-perl
libio-tee-perl
libmodule-scandeps-perl
libnet-ssleay-perl
libpar-packer-perl
libterm-readkey-perl
libtest-pod-perl
libtest-simple-perl
libunicode-string-perl
liburi-perl
cpanminus
The second command installs "manually" the Perl module Data::Uniqid
because Debian hasn't made it available via a package yet.
It also install manually Perl module Mail::IMAPClient because
it is good to be up to date:
cpanm Data::Uniqid Mail::IMAPClient
After installing the dependencies, imapsync should be working.
You don't have to be root to test and use imapsync.
Take the compressed tarball called imapsync-1.xxx.tgz
where 1.xxx is the version number.
Untar the tarball where you want:
cd
tar xzvf imapsync-1.xxx.tgz
Go into the directory imapsync-1.xxx
cd imapsync-1.xxx
A dependencies test that shows also the basic example:
./imapsync
A live test showing imapsync job:
./imapsync --testslive
Now the install command (need root priviledges again):
cp imapsync /usr/bin/
That's finished for the installation part.
You can use imapsync.
Now go to read http://imapsync.lamiral.info/#doc
start with the tutorial.