Skip to content

Instantly share code, notes, and snippets.

@carlos22
Last active July 4, 2018 10:01
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • 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
@buscat
Copy link

buscat commented Jun 20, 2015

Following this procedure I got an error:

root@mail:/imapsync# make install
sh INSTALL.d/prerequisites_imapsync
$SHELL says /bin/bash
$0 gives INSTALL.d/prerequisites_imapsync
ps -ef gives root 18357 18348 0 02:06 pts/3 00:00:00 sh INSTALL.d/prerequisites_imapsync
Distributor ID: Ubuntu
Description: Ubuntu 14.04.2 LTS
Release: 14.04
Codename: trusty
Linux Ubuntu 3.16.0-41-generic #55
14.04.1-Ubuntu SMP Sun Jun 14 18:44:35 UTC 2015 i686 i686 i686 GNU/Linux
Ok: Found Perl 5.18.2
Ok: Found Perl module Digest::HMAC_MD5
Ok: Found Perl module Authen::NTLM
Ok: Found Perl module Compress::Zlib
Ok: Found Perl module Data::Dumper
Ok: Found Perl module Data::Uniqid
Ok: Found Perl module Digest::HMAC
Ok: Found Perl module Digest::MD5
Ok: Found Perl module File::Copy::Recursive
Ok: Found Perl module IO::Socket::INET
Ok: Found Perl module IO::Socket::INET6
Ok: Found Perl module IO::Socket::SSL
Ok: Found Perl module IO::Tee
Ok: Found Perl module Mail::IMAPClient
Ok: Found Perl module Parse::RecDescent
Ok: Found Perl module Term::ReadKey
Ok: Found Perl module Test::More
Ok: Found Perl module Test::Pod
Ok: Found Perl module Unicode::String
Ok: Found Perl module URI::Escape
All needed modules are already installed
imapsync syntax OK
pod2man < /dev/null
pod2man: unable to format
make: *** [W/imapsync.1] Errore 1

What can I do?
Thanks

@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