2011-03-12 03:44:19 +01:00
|
|
|
# $Id: INSTALL,v 1.9 2005/11/16 01:14:18 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
|
|
|
|
|
|
|
GETTING
|
|
|
|
-------
|
|
|
|
|
|
|
|
http://www.linux-france.org/prj/imapsync/dist/
|
|
|
|
|
2011-03-12 03:40:59 +01:00
|
|
|
PREREQUISITES
|
|
|
|
-------------
|
|
|
|
|
|
|
|
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:43:48 +01:00
|
|
|
- Perl Mail::IMAPClient module
|
|
|
|
try : perl -mMail::IMAPClient -e ''
|
|
|
|
|
|
|
|
Get the Mail::IMAPClient module here:
|
|
|
|
http://search.cpan.org/
|
|
|
|
http://search.cpan.org/~djkernen/
|
|
|
|
http://search.cpan.org/~djkernen/Mail-IMAPClient-2.2.9/
|
|
|
|
|
2011-03-12 03:44:16 +01:00
|
|
|
In fact I use Mail-IMAPClient-2.2.9 (debian package)
|
2011-03-12 03:43:48 +01:00
|
|
|
To know the version you have on your system try :
|
|
|
|
perl -mMail::IMAPClient -e 'print $Mail::IMAPClient::VERSION, "\n"'
|
2011-03-12 03:43:50 +01:00
|
|
|
|
|
|
|
- Perl Digest::MD5 module.
|
|
|
|
http://search.cpan.org/
|
|
|
|
http://search.cpan.org/~gaas/Digest-MD5-2.33/
|
|
|
|
To know the version you have on your system try :
|
|
|
|
perl -mDigest::MD5 -e 'print $Digest::MD5::VERSION, "\n"'
|
|
|
|
I use 2.20 (debian package)
|
|
|
|
|
2011-03-12 03:44:19 +01:00
|
|
|
- Term::ReadKey
|
|
|
|
|
2011-03-12 03:43:50 +01:00
|
|
|
- (Option) Perl Digest::HMAC_MD5 module
|
|
|
|
Good for non plain text password over network.
|
|
|
|
|
2011-03-12 03:39:59 +01:00
|
|
|
|
2011-03-12 03:43:43 +01:00
|
|
|
INSTALLING
|
|
|
|
----------
|
|
|
|
To see what will be done, just run:
|
|
|
|
|
|
|
|
make -n install
|
|
|
|
|
|
|
|
To install imapsync, just run:
|
|
|
|
|
|
|
|
make install
|
|
|
|
|
|
|
|
or copy the file imapsync where you want it to be.
|
|
|
|
|
2011-03-12 03:39:59 +01:00
|
|
|
TESTING
|
|
|
|
-------
|
|
|
|
|
2011-03-12 03:43:48 +01:00
|
|
|
The test will break as they are home specific.
|
2011-03-12 03:39:59 +01:00
|
|
|
You need a running imap server on localhost with two accounts
|
|
|
|
toto@est.belle with a password located in the file /var/tmp/secret1
|
|
|
|
titi@est.belle with a password located in the file /var/tmp/secret2
|
|
|
|
|
|
|
|
Of course, you can change the file tests.sh and run the tests with :
|
|
|
|
|
|
|
|
sh tests.sh
|
|
|
|
|
|
|
|
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
|
|
|
|