1
0
mirror of https://github.com/imapsync/imapsync.git synced 2024-11-17 00:02:29 +01:00
imapsync/INSTALL

183 lines
4.9 KiB
Plaintext
Raw Normal View History

2012-07-21 04:18:22 +02:00
# $Id: INSTALL,v 1.25 2012/07/19 05:57:14 gilles Exp gilles $
2011-03-12 03:39:59 +01:00
#
2011-03-12 03:43:50 +01:00
# INSTALL file for imapsync
# imapsync : IMAP sync or copy tool.
2011-03-12 03:39:59 +01:00
2011-03-12 03:44:40 +01:00
INTRODUCTION
------------
2012-04-17 00:27:13 +02:00
imapsync works fine under any operating system with Perl and Perl modules (listed below).
imapsync.exe works fine standalone under Windows XP, Vista, Seven, 20XX, either 32 or 64bit.
2011-03-12 03:44:40 +01:00
2011-06-14 12:59:46 +02:00
UNIX
----
2011-03-12 03:44:40 +01:00
2012-04-17 00:27:13 +02:00
Purchase imapsync at
http://imapsync.lamiral.info/
2011-06-14 12:59:46 +02:00
You'll have access to a compressed tarball called imapsync-x.xx.tgz
2011-03-12 03:44:40 +01:00
where x.xx is the version number. Untar the tarball where
you want (on Unix):
tar xzvf imapsync-x.xx.tgz
Go into the directory imapsync-x.xx and read the INSTALL file.
You're already reading the INSTALL file.
2011-06-14 12:59:46 +02:00
WINDOWS
2011-03-12 03:39:59 +01:00
-------
2011-06-14 12:59:46 +02:00
a) Simplest way:
2012-04-17 00:27:13 +02:00
- Buy imapsync.exe at http://imapsync.lamiral.info/
- Run imapsync.exe in a command prompt (execute cmd.exe).
2011-06-14 12:59:46 +02:00
b) Hard way:
- Get imapsync-x.xx.tgz
- Install Perl if it isn't already installed.
Strawberry Perl is a good candidate
- Use PPM to install modules listed in the PREREQUISITES section.
PPM is Perl Package Manager.
PREREQUISITES
2011-03-12 03:40:59 +01:00
-------------
2011-06-14 12:59:46 +02:00
This section doesn't concern Windows imapsync.exe users.
2011-03-12 03:40:59 +01:00
You need :
- Perl
try : perl -v
2011-03-12 03:43:48 +01:00
Get Perl here:
http://www.perl.org/
2011-03-12 03:40:59 +01:00
2011-03-12 03:44:26 +01:00
- Some perl modules. To verify you have
all modules in one command, just run:
perl -c imapsync
The good answer is "imapsync syntax OK".
Here is some individual module help:
2011-03-12 03:43:48 +01:00
- Perl Mail::IMAPClient module
2011-03-12 03:44:34 +01:00
try :
perl -mMail::IMAPClient -e ''
2011-03-12 03:43:48 +01:00
2012-04-17 00:34:41 +02:00
Get the latest Mail::IMAPClient module here:
http://search.cpan.org/dist/Mail-IMAPClient/
In fact I use both Mail-IMAPClient-2.2.9 and latest Mail-IMAPClient-3.xx
2012-07-21 04:18:22 +02:00
(xx >= 31 now) To know the version you have on your system try :
2011-03-12 03:44:34 +01:00
2011-03-12 03:43:48 +01:00
perl -mMail::IMAPClient -e 'print $Mail::IMAPClient::VERSION, "\n"'
2011-03-12 03:43:50 +01:00
2012-04-17 00:34:41 +02:00
New Mail-IMAPClient-3.xx works now very well with imapsync,
better than Mail-IMAPClient-2.2.9 with memory and other things,
at least with Mail-IMAPClient-3.25 (previous may bug).
Don't hesitate to use latest Mail-IMAPClient-3.xx
2011-03-12 03:44:36 +01:00
2012-07-21 04:18:22 +02:00
Look at the script named i3 in the tarball, it can be used to
run imapsync with included Mail-IMAPClient-3.31/ wherever you
unpacked the imapsync tarball.
2011-03-12 03:43:50 +01:00
- Perl Digest::MD5 module.
2011-03-12 03:44:57 +01:00
try:
perl -mDigest::MD5
2011-03-12 03:43:50 +01:00
http://search.cpan.org/
2012-07-21 04:18:22 +02:00
http://search.cpan.org/~gaas/Digest-MD5-2.52/
2011-03-12 03:43:50 +01:00
To know the version you have on your system try :
perl -mDigest::MD5 -e 'print $Digest::MD5::VERSION, "\n"'
2012-07-21 04:18:22 +02:00
I use 2.39 (Ubuntu package)
2011-03-12 03:43:50 +01:00
2011-03-12 03:44:19 +01:00
- Term::ReadKey
2011-03-12 03:44:34 +01:00
perl -mTerm::ReadKey -e ''
2011-03-12 03:44:19 +01:00
2012-04-17 00:31:15 +02:00
- IO::Socket::SSL
2011-03-12 03:44:26 +01:00
perl -mIO::Socket::SSL -e ''
2011-03-12 03:44:50 +01:00
- File::Spec
perl -mFile::Spec -e ''
- File::Path
perl -mFile::Path -e ''
2011-03-12 03:44:57 +01:00
- Perl Digest::HMAC_MD5 module
2011-03-12 03:43:50 +01:00
Good for non plain text password over network.
2011-03-12 03:45:04 +01:00
- Perl Authen::NTLM
perl -mAuthen::NTLM -e ''
2012-04-17 00:28:48 +02:00
Test everything in one command:
2011-03-12 03:44:57 +01:00
2011-03-12 03:45:04 +01:00
perl -mMail::IMAPClient -mDigest::MD5 -mTerm::ReadKey -mIO::Socket::SSL \
-mFile::Spec -mDigest::HMAC_MD5 -mAuthen::NTLM -e ''
2011-03-12 03:39:59 +01:00
2012-04-17 00:31:15 +02:00
You can install easily those Perl modules in latest release via the
2012-04-17 00:28:48 +02:00
following commands (with root permissions)
perl -MCPAN -e 'install Mail::IMAPClient'
perl -MCPAN -e 'install Digest::MD5'
perl -MCPAN -e 'install Term::ReadKey'
perl -MCPAN -e 'install IO::Socket::SSL'
perl -MCPAN -e 'install File::Spec'
perl -MCPAN -e 'install Digest::HMAC_MD5'
perl -MCPAN -e 'install Authen::NTLM'
2012-04-17 00:31:15 +02:00
You can install them easily too by using the standard install
command on your system if the packages have been made on it
(so you may not have the latest but most of the time it
doesn't care).
Example on Debian/Ubuntu:
aptitude install libmail-imapclient-perl # Mail::IMAPClient'
aptitude install libdigest-md5-file-perl # Digest::MD5'
aptitude install libterm-readkey-perl # Term::ReadKey'
aptitude install libio-socket-ssl-perl # IO::Socket::SSL'
aptitude install libfile-spec-perl # File::Spec'
aptitude install libdigest-hmac-perl # Digest::HMAC_MD5'
aptitude install ? # (not free?) # Authen::NTLM
2012-04-17 00:28:48 +02:00
2011-06-14 12:59:46 +02:00
INSTALLING on Unix
------------------
2011-03-12 03:43:43 +01:00
To see what will be done, just run:
2011-06-14 12:59:46 +02:00
make -n install
2011-03-12 03:43:43 +01:00
2012-07-21 04:18:22 +02:00
To install imapsync in /usr/bin/ and man page in /usr/share/man/man1/, just run (as root):
2011-03-12 03:43:43 +01:00
2011-06-14 12:59:46 +02:00
make install
2011-03-12 03:43:43 +01:00
or copy the file imapsync where you want it to be.
2011-06-14 12:59:46 +02:00
TESTING on Unix
---------------
2011-03-12 03:39:59 +01:00
2012-07-21 04:18:22 +02:00
Tests will break as they are home specific.
2011-03-12 03:44:47 +01:00
You need a running imap server on localhost with several accounts
toto with a password located in the file $HOME/var/pass/secret.toto
titi with a password located in the file $HOME/var/pass/secret.titi
tata with a password located in the file $HOME/var/pass/secret.tata
2011-03-12 03:39:59 +01:00
2012-07-21 04:18:22 +02:00
Of course, you can change the file tests.sh and run tests with:
sh -x tests.sh
Specific tests can be run by using them as argument to tests.sh:
2011-03-12 03:39:59 +01:00
2012-07-21 04:18:22 +02:00
sh -x tests.sh ll_ssl_justconnect ll_bad_host ...
2011-03-12 03:39:59 +01:00
The tests.sh script break on first failure ("set -e" directive).
2011-03-12 03:43:43 +01:00
Since I added more tests you also need a remote imap server see the
file tests.sh and help yourself. No time to make a universal test
file.
2011-03-12 03:39:59 +01:00