Add bulk-imapsync.sh
This commit is contained in:
parent
c6cf2602d3
commit
029c0cfd48
1 changed files with 14 additions and 0 deletions
14
bulk-imapsync.sh
Normal file
14
bulk-imapsync.sh
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue