Imapsync

Da Wiki Fiberland.
Vai alla navigazioneVai alla ricerca

Partendo da un csv:
export IFS=","

while read aa bb cc dd ee do imapsync --addheader --nosslcheck --nosyncacls --subscribe --syncinternaldates --justlogin --host1 SOURCEIP --user1 $aa --password1 $bb --host2 DESTIP --user2 $dd --password2 $ee done </tmp/csv.txt



Con parallel, cache e tutti i crismi pure per e mail troppo grosse diventa:
parallel --max-procs 2 --delay 60 --colsep ',' --arg-file /tmp/csv.txt --line-buffer --tagstring "from {1} to {4} : " imapsync --nochecknoabletosearch --maxsize 82428800 --buffersize 82428800 --nofoldersizes --skipsize --fastio1 --fastio2 --addheader --nosslcheck --nosyncacls --subscribe --syncinternaldates --delete2 --usecache --host1 SOURCEIP --user1 {1} --password1 {2} --host2 DESTIP --user2 {4} --password2 {5}