Skip to content

Instantly share code, notes, and snippets.

@carlos22
Last active July 4, 2018 10:01
Show Gist options
  • Save carlos22/5d24c6fbd654b9c0bb33 to your computer and use it in GitHub Desktop.
Save carlos22/5d24c6fbd654b9c0bb33 to your computer and use it in GitHub Desktop.
Install imapsync on Ubuntu 14.04 (trusty)
#!/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
@mcantsin
Copy link

Same issue here on GNU/Linux Ubuntu 14.04, which is due to this bug:
https://bugs.mageia.org/show_bug.cgi?id=10663

Use these steps and it will work:

perl -c imapsync
#imapsync syntax OK
pod2man imapsync > imapsync.1
mkdir -p /usr/bin
install imapsync /usr/bin/imapsync
chmod 755 /usr/bin/imapsync
mkdir -p /usr/share/man/man1
install imapsync.1 /usr/share/man/man1/imapsync.1
chmod 644 /usr/share/man/man1/imapsync.1

Source: http://grossi.io/2013/migrating-emails-using-imap-imapsync-tofrom-gmail-yahoo-etc/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment