Imapsync

De MochilaWiki
Ir para navegaçãoIr para pesquisar


Debian 8

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 libauthen-ntlm-perl libio-tee-perl libtest-pod-perl \
libunicode-string-perl
git clone git://github.com/imapsync/imapsync.git
cd imapsync
sudo cpan -i Data::Uniqid
sudo make install

Debian 9

apt install -y libauthen-ntlm-perl libcgi-pm-perl libcrypt-openssl-rsa-perl   \
libdata-uniqid-perl libencode-imaputf7-perl libfile-copy-recursive-perl \
libfile-tail-perl libio-socket-inet6-perl libio-socket-ssl-perl libio-tee-perl \
libhtml-parser-perl libjson-webtoken-perl libmail-imapclient-perl \
libparse-recdescent-perl libmodule-scandeps-perl libreadonly-perl  \
libregexp-common-perl libsys-meminfo-perl libtest-requires-perl cpanminus \
libterm-readkey-perl libtest-mockobject-perl libdist-checkconflicts-perl \
libtest-pod-perl libunicode-string-perl liburi-perl libwww-perl \
libtest-nowarnings-perl libtest-deep-perl libtest-mock-guard-perl \
libtest-warn-perl make libpar-packer-perl libtest-fatal-perl git-core
git clone https://github.com/imapsync/imapsync.git
cd imapsync
make install

Fedora

yum install imapsync


exemplo de uso 1

imapsync --host1 mail.seuservidor1.tld --user1 "seuemail1@seuservidor1.tld" --password1 "suasenha" \
--host2 mail.seuservidor2.tld --user2 "seuemail1@seuservidor2.tld" --password2 "suasenha" \
--authmech1 PLAIN --authmech2 PLAIN -ssl1 -sep1 "." --prefix1 ""

exemplo de uso 2

imapsync --host1 mail.dominio1.com.br --user1 user@email.com.br --password1 SENHA1 
--host2 mail.dominio2.com.br --user2 user2@dominio.com.br --password2 SENHA2 
--exclude 'INBOX.Lixeira' --exclude 'INBOX.Junk' --exclude 'INBOX.Spam' --exclude 
'INBOX.Trash' --exclude 'INBOX.INBOX.Lixeira' --authmech1 LOGIN --authmech2 LOGIN
--passfile1 /home/jonas/secret1
--ssl2
--port2 993
--syncinternaldates
-sep2
--allowsizemismatch # é necessário na migração de contas google/gmail
--dry # para simulação / não vai transferir as mensagens
--exclude "Sent Items|Deleted Items|Drafts|Spam" # excluir itens/pastas
--buffersize 8192000 -
--maxsize 52428800 # limite tamanho de arquivo - no maxsize o valor é um bit, algumas dicas de valores são
--maxsize 131072 = 1M
--maxsize 262144 = 2M
--maxsize 1310720 = 10M
--maxsize 52428800 = 50M


dicas