Migrer avec Imapsync une boîte mail Imap vers un nouvel hébergeur

Publié le - Modifié le 17 février 2019 | Aucun commentaire

Classé dans : Maintenance, Outillage, Intervention délicate, Rédaction en cours en 120 min. | Mots clés : mail

Cette approche permet notamment de migrer de façon automatisée une boîte mail avec beaucoup de dossiers, et de sous-dossiers.

Installer l'outil de migration Imapsync

sudo apt-get install libdate-manip-perl libterm-readkey-perl libterm-readkey-perl libdigest-hmac-perl libdigest-hmac-perl libdate-manip-perl libmail-imapclient-perl makepasswd rcs perl-doc git

cd /tmp

sudo git clone git://github.com/imapsync/imapsync.git

cd imapsync/

cat VERSION

1.678

sh examples/install_modules_linux.sh

sh: 0: Can't open examples/install_modules_linux.sh

sudo cp imapsync /usr/bin/

./imapsync

Can't locate IO/Tee.pm in @INC (you may need to install the IO::Tee module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at ./imapsync line 692.
BEGIN failed--compilation aborted at ./imapsync line 692.

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 libreadonly-perl libterm-readkey-perl libtest-pod-perl libtest-simple-perl libunicode-string-perl liburi-perl cpanminus

sudo cpanm Data::Uniqid Mail::IMAPClient

2085 ./imapsync

 usage: ./imapsync [options]

 Several options are mandatory.
 str means string
 int means integer
...

2087 sudo ./imapsync --testslive

Transfer started at Thu Jul 28 23:12:12 2016
PID is 10552
Log file is LOG_imapsync/2016_07_28_23_12_12_test2.txt ( to change it, use --logfile path ; or use --nolog to turn off logging )
$RCSfile: imapsync,v $ $Revision: 1.678 $ $Date: 2016/01/21 19:47:02 $
...

2094 sudo sh examples/imapsync_example.sh

Transfer started at Thu Jul 28 23:17:05 2016
PID is 10595
Log file is LOG_imapsync/2016_07_28_23_17_05_test2.txt ( to change it, use --logfile path ; or use --nolog to turn off logging )
$RCSfile: imapsync,v $ $Revision: 1.678 $ $Date: 2016/01/21 19:47:02 $
Here is a [linux] system (Linux...
With perl 5.20.2 Mail::IMAPClient  3.38
Command line used:
./imapsync --host1 test1.lamiral.info --user1 test1 --password1 MASKED --host2 test2.lamiral.info --user2 test2 --password2 MASKED --automap --justfolders --dry
Temp directory is /tmp  ( to change it use --tmpdir dirpath )
PID file is /tmp/imapsync.pid ( to change it use --pidfile filepath ; to avoid it use --pidfile "" )
...

2095 cat examples/imapsync_example.sh

http://imapsync.lamiral.info/

http://kb.mozillazine.org/Moving_your_mail_storage_location_%28Thunderbird%29

Et ça marche smiley

Source :

Écrire un commentaire

Quelle est le dernier caractère du mot gzpvc ?

Fil RSS des commentaires de cet article