From 029c0cfd48e1be2aa47e851e533af5f6a6742c51 Mon Sep 17 00:00:00 2001 From: Blackwhitebear8 Date: Fri, 3 Oct 2025 11:05:46 +0200 Subject: [PATCH] Add bulk-imapsync.sh --- bulk-imapsync.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 bulk-imapsync.sh diff --git a/bulk-imapsync.sh b/bulk-imapsync.sh new file mode 100644 index 0000000..5a8e1dd --- /dev/null +++ b/bulk-imapsync.sh @@ -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 \ No newline at end of file