Входящие gmail ```bash ./imapsync \ --host1 imap.gmail.com \ --port1 993 \ --ssl1 \ --user1 uralavtostroymiass@gmail.com \ --password1 'impj rmyc ecwl cqeq' \ --host2 localhost \ --user2 sales@1-agent.ru \ --password2 'sinkhrotsiklOtron6107' \ --ssl2 \ --gmail1 \ --folder "INBOX" \ --syncinternaldates \ --useuid \ --maxage 120 ``` Входящие mail ```bash ./imapsync \ --host1 imap.mail.ru \ --user1 cy-1miass@mail.ru \ --password1 'pLbAOA2PAWHoc1yrj5qP' \ --ssl1 \ --host2 localhost \ --user2 info@1-su.ru \ --password2 'xp7h2vWGkM6Cny2' \ --ssl2 --folder "INBOX" \ --folderrec "INBOX/*" --syncinternaldates --useuid --search "ALL" ``` тест папок через ssl ```bash openssl s_client -connect imap.gmail.com:993 -crlf -quiet a LOGIN uralavtostroymiass@gmail.com password1 b LIST "" "*" c LOGOUT ``` Отправленные gmail ```bash ./imapsync \ --host1 imap.gmail.com \ --port1 993 \ --ssl1 \ --user1 uralavtostroymiass@gmail.com \ --password1 'impj rmyc ecwl cqeq' \ --host2 localhost \ --user2 sales@1-agent.ru \ --password2 'sinkhrotsiklOtron6107' \ --ssl2 \ --gmail1 \ --folder "[Gmail]/&BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-" \ --regextrans2 "s/\[Gmail\]\/&BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-/Sent/" \ --syncinternaldates \ --useuid ``` Отправленные mail ```bash ./imapsync \ --host1 imap.mail.ru \ --user1 cy-1miass@mail.ru \ --password1 '???' \ --ssl1 \ --host2 localhost \ --user2 sales@1-agent.ru \ --password2 'sinkhrotsiklOtron6107' \ --ssl2 \ --folder "&BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-" \ --regextrans2 "s/&BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-/Sent/" \ --syncinternaldates \ --useuid ```