Add bulk-imapsync.sh

This commit is contained in:
Blackwhitebear8 2025-10-03 11:05:46 +02:00
parent c6cf2602d3
commit 029c0cfd48

14
bulk-imapsync.sh Normal file
View file

@ -0,0 +1,14 @@
#!/bin/bash
{
read -r line
line=`tr ',' ' ' <<< $line`
while IFS=, read -r $line ; do
echo "Server1: $server1"
echo "Username1: $username1"
echo "Password1: $password2"
echo "Server2: $server2"
echo "Username2: $username2"
echo "Password2: $password2"
imapsync --host1 $server1 --user1 $username1 --password1 $password1 --host2 $server2 --user2 $username2 --password2 $password2
done
} < emails.csv