billlcosta Posted August 13, 2017 at 09:22 PM Share Posted August 13, 2017 at 09:22 PM Nota.: Script desenvolvido em bash para realizar o sincronismo de contas IMAP. #!/bin/bash #=======================================================================================# # IMAP SYNC # # # # Created by.: PH # # Contact.: phillipe@phillipefarias.com.br # # # #=======================================================================================# #=================# #=== Variables ===# #=================# host1="mail.domain.com" #source host2="mail.domain.com" #destination accountsfile="accounts.txt" authuser1="user@domain.com" authpasswd1="password1" authuser2="user@domain.com" authpasswd2="password2" for account in $(cat $accountsfile); do /usr/bin/imapsync --nosyncacls --syncinternaldates --nofoldersizes --skipsize --fast --host1 $host1 --user1 $account*$authuser1 --password1 $authpasswd1 --host2 $host2 --user2 $account --authuser2 $authuser2 --password2 $authpasswd2 --exclude 'INBOX.Lixeira' --exclude 'INBOX.Junk' --exclude 'INBOX.Spam' --exclude 'INBOX.Trash' --exclude 'INBOX.INBOX.Lixeira' --exclude '#KnownSpam' --exclude '#FalsePositives' done Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.