====== imapsync ======

===== Установка =====
<code bash>apt-get install  \
libauthen-ntlm-perl     \
libclass-load-perl      \
libcrypt-ssleay-perl    \
libdata-uniqid-perl     \
libdigest-hmac-perl     \
libdist-checkconflicts-perl \
libencode-imaputf7-perl     \
libfile-copy-recursive-perl \
libfile-tail-perl       \
libio-compress-perl     \
libio-socket-inet6-perl \
libio-socket-ssl-perl   \
libio-tee-perl          \
libmail-imapclient-perl \
libmodule-scandeps-perl \
libnet-dbus-perl        \
libnet-ssleay-perl      \
libpar-packer-perl      \
libreadonly-perl        \
libregexp-common-perl   \
libsys-meminfo-perl     \
libterm-readkey-perl    \
libtest-fatal-perl      \
libtest-mock-guard-perl \
libtest-mockobject-perl \
libtest-pod-perl        \
libtest-requires-perl   \
libtest-simple-perl     \
libunicode-string-perl  \
liburi-perl             \
libtest-nowarnings-perl \
libtest-deep-perl       \
libtest-warn-perl       \
make                    \
cpanminus</code>

<code bash>wget -N https://raw.githubusercontent.com/imapsync/imapsync/master/imapsync
chmod +x imapsync</code>

<code bash>cp imapsync /usr/local/bin/</code>

<code bash>./imapsync --testslive</code>
===== Копирование =====

Одичной вариант (полное копирование)
<code bash>imapsync --host1 imap.yandex.ru --user1 zhukov.vs@fondinec.ru --password1 'neogwkputzafldfr' --host2 localhost --user2 zhukov.vs@fondinec.ru --password2 'tcOpNaBlG60Rtfl2UhPk3f!' --nokeepalive1 --nokeepalive2  --debugssl 4 --subfolder2 INBOX.destinationfolder --justfolders --dry</code>

Массовый вариант
<code bash>imapsync --host1 imap.yandex.ru --user1 zhukov.vs@fondinec.ru --passfile1 passfile1.txt --host2 localhost --user2 zhukov.vs@fondinec.ru --passfile2 passfile2.txt --nokeepalive1 --nokeepalive2  --debugssl 4 --subfolder2 INBOX.destinationfolder --justfolders --dry</code>

===== Скрипт =====

<code bash>#!/bin/sh
{ while IFS=';' read h1 u1 p1 h2 u2 p2 fake
  do 
   imapsync --host1 "$h1" --user1 "$u1" --password1 "$p1" \
   --host2 "$h2" --user2 "$u2" --password2 "$p2" \
   --nokeepalive1 --nokeepalive2  --debugssl 4 --subfolder2 INBOX.destinationfolder --justfolders --dry 
  done 
} < file.txt</code>

<code bash>host1;user1_1;password11_1;host2;user2_1;password2_1;
host1;user1_2;password11_2;host2;user2_2;password2_2;
host1;user1_3;password11_3;host2;user2_3;password2_3;
host1;user1_4;password11_4;host2;user2_4;password2_4;</code>


===== Для фонда =====
==== Жуков ====
<code bash>imapsync --host1 imap.yandex.ru --user1 zhukov.vs@fondinec.ru --password1 'neogwkputzafldfr' --host2 localhost --user2 zhukov.vs@fondinec.ru --password2 'tcOpNaBlG60Rtfl2UhPk3f!' --nokeepalive1 --nokeepalive2  --debugssl 4 --subfolder2 INBOX.destinationfolder --justfolders --dry</code>

==== Зеулина ====
<code bash>imapsync --host1 imap.yandex.ru --user1 zeulina.ev@fondinec.ru --password1 'enikofajbrbudjeq' --host2 localhost --user2 zeulina.ev@fondinec.ru --password2 'yFtB5N4j2*' --nokeepalive1 --nokeepalive2</code>

==== Исаков ====
<code bash>imapsync --host1 imap.yandex.ru --user1 isakov.da@fondinec.ru --password1 'omzhetrnsvwaexjd' --host2 localhost --user2 isakov.da@fondinec.ru --password2 '8tp8z}MV8J' --nokeepalive1 --nokeepalive2</code>

==== Савченко ====
<code bash>imapsync --host1 imap.yandex.ru --user1 savchenko.nv@fondinec.ru --password1 'rdhfwuxirnzcsfyt' --host2 localhost --user2 savchenko.nv@fondinec.ru --password2 '8K3{nF3776' --nokeepalive1 --nokeepalive2</code>

==== Крестова ====
<code bash>imapsync --host1 imap.yandex.ru --user1 krestova.ep@fondinec.ru --password1 'gxgkdkkgqiwchlug' --host2 localhost --user2 krestova.ep@fondinec.ru --password2 '5r4{nv3S6H' --nokeepalive1 --nokeepalive2</code>

==== Минаев ====
<code bash>imapsync --host1 imap.yandex.ru --user1 minaev.vv@fondinec.ru --password1 'hsofxjqcrbjpenpz' --host2 localhost --user2 minaev.vv@fondinec.ru --password2 '5#zEb2YuuN' --nokeepalive1 --nokeepalive2</code>

==== Еремеев ====
<code bash>imapsync --host1 imap.yandex.ru --user1 eremeev.an@fondinec.ru --password1 'apkpmwnexrdpihag' --host2 localhost --user2 eremeev.an@fondinec.ru --password2 'PCP2At7xR?' --nokeepalive1 --nokeepalive2</code>

==== АХО ====
<code bash>imapsync --host1 imap.yandex.ru --user1 aho@fondinec.ru --password1 'hqfxbmgjhrucfvlk' --host2 localhost --user2 aho@fondinec.ru --password2 'kT8k/726UH' --nokeepalive1 --nokeepalive2</code>

==== Калугин ====

<code bash>imapsync --host1 imap.yandex.ru --user1 kalugin.oa@fondinec.ru --password1 'mvoeecozfdudegpd' --host2 localhost --user2 kalugin.oa@fondinec.ru --password2 'QE59qE`52S' --nokeepalive1 --nokeepalive2</code>

==== Феоктистова ====

<code bash>imapsync --host1 imap.yandex.ru --user1 feoktistova.av@fondinec.ru --password1 'xadmnfphtmfkkxln' --host2 localhost --user2 feoktistova.av@fondinec.ru --password2 'Xkw8axB9~5' --nokeepalive1 --nokeepalive2</code>

==== Петрова ====

<code bash>imapsync --host1 imap.yandex.ru --user1 petrova.ns@fondinec.ru --password1 'delyghqxwgcipith' --host2 localhost --user2 petrova.ns@fondinec.ru --password2 'mp8m>98JyQ' --nokeepalive1 --nokeepalive2</code>

==== Яковлев ====

<code bash>imapsync --host1 imap.yandex.ru --user1 yakovlev.ab@fondinec.ru --password1 'ugnbsqtwmrictono' --host2 localhost --user2 yakovlev.ab@fondinec.ru --password2 'uP6=U5sDLe' --nokeepalive1 --nokeepalive2</code>

==== Инфо ====

<code bash>imapsync --host1 imap.yandex.ru --user1 info@fondinec.ru --password1 'zzlzqspxkatvrodb' --host2 localhost --user2 info@fondinec.ru --password2 'z=3JuU29PM' --nokeepalive1 --nokeepalive2</code>

==== Сафонова ====

<code bash>imapsync --host1 imap.yandex.ru --user1 safonova.jn@fondinec.ru --password1 'gnmniucohgzbkxjr' --host2 localhost --user2 safonova.yn@fondinec.ru --password2 'uC-R859Z29' --nokeepalive1 --nokeepalive2</code>

==== Ярцева ====

<code bash>imapsync --host1 imap.yandex.ru --user1 yartseva.ni@fondinec.ru --password1 'fikfeyudsboevlso' --host2 localhost --user2 yartseva.ni@fondinec.ru --password2 '66(XqT2vSY' --nokeepalive1 --nokeepalive2</code>

==== Ярцев ====

<code bash>imapsync --host1 imap.yandex.ru --user1 yartsev.ns@fondinec.ru --password1 'gipqczptvfsnhqjx' --host2 localhost --user2 yartsev.ns@fondinec.ru --password2 'Xw45F)36qF' --nokeepalive1 --nokeepalive2</code>

==== carrier ====

<code bash>imapsync --host1 imap.yandex.ru --user1 carrier@fondinec.ru --password1 'ptwcamozfxkmztjt' --host2 localhost --user2 carrier@fondinec.ru --password2 '2yG594k%wY' --nokeepalive1 --nokeepalive2</code>

==== SB ====

<code bash>imapsync --host1 imap.yandex.ru --user1 sb@fondinec.ru --password1 'xnoboqwsrufqmgxa' --host2 localhost --user2 sb@fondinec.ru --password2 '3v9C3y28)j' --nokeepalive1 --nokeepalive2</code>

==== Invest ====

<code bash>imapsync --host1 imap.yandex.ru --user1 invest@fondinec.ru --password1 'lkgbhohkijnplnty' --host2 localhost --user2 invest@fondinec.ru --password2 'Jv6q#b259r' --nokeepalive1 --nokeepalive2</code>

==== Иванов ====

<code bash>imapsync --host1 imap.yandex.ru --user1 volkov.av@fondinec.ru --password1 'znqnkzjyoklqueid' --host2 localhost --user2 volkov.av@fondinec.ru --password2 'aj5E&z3Jwb' --nokeepalive1 --nokeepalive2</code>