108 lines
2.0 KiB
Markdown
108 lines
2.0 KiB
Markdown
Входящие 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 bid.group@mail.ru \
|
|
--password1 'YvabfX1ZfXeZfcmeKhPT' \
|
|
--ssl1 \
|
|
--host2 localhost \
|
|
--user2 info@bid-group74.ru \
|
|
--password2 'xp7h2vWGkM6Cny2' \
|
|
--ssl2 \
|
|
--exclude "&BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-" \
|
|
--exclude "&BCEEPwQwBDw-" \
|
|
--exclude "Infected Items" \
|
|
--exclude "&BB0ENQQ2BDUEOwQwBEIENQQ7BEwEPQQwBE8- &BD8EPgRHBEIEMA-" \
|
|
--exclude "&BCcENQRABD0EPgQyBDgEOgQ4-" \
|
|
--exclude "Archive" \
|
|
--exclude "Junk" \
|
|
--syncinternaldates \
|
|
--useuid \
|
|
--search "ALL"
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
тест папок через ssl
|
|
|
|
```bash
|
|
openssl s_client -connect imap.mail.com:993 -crlf -quiet
|
|
|
|
a LOGIN trest_zhanna@mail.ru 0SLrC2Re6DbRxNgELzeI
|
|
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 uas-chel@mail.ru \
|
|
--password1 'ZCgyiYVlMRPYRDfaZj31' \
|
|
--ssl1 \
|
|
--host2 localhost \
|
|
--user2 info@uralav.ru \
|
|
--password2 'xp7h2vWGkM6Cny2' \
|
|
--ssl2 \
|
|
--folder "&BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-" \
|
|
--regextrans2 "s/&BB4EQgQ,BEAEMAQyBDsENQQ9BD0ESwQ1-/Sent/" \
|
|
--syncinternaldates \
|
|
--useuid
|
|
```
|
|
|
|
|
|
|
|
```
|
|
uas-chel@mail.ru
|
|
ZCgyiYVlMRPYRDfaZj31
|
|
|
|
info@uralav.ru
|
|
```
|
|
|
|
```
|
|
bid.group@mail.ru
|
|
info@bid-group74.ru
|
|
YvabfX1ZfXeZfcmeKhPT
|
|
``` |