mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
18 lines
271 B
Bash
Executable File
18 lines
271 B
Bash
Executable File
#!/bin/bash
|
|
cd $(dirname $0)
|
|
inboxes=$(cat inboxes)
|
|
|
|
bash ~/.config/Scripts/check.sh
|
|
while :
|
|
do
|
|
if [ -f $(pgrep offlineimap) ]; then
|
|
offlineimap -o
|
|
echo "OfflineIMAP sync complete."
|
|
bash check.sh
|
|
notmuch new
|
|
else
|
|
echo "OfflineIMAP already running."
|
|
fi
|
|
sleep 60
|
|
done
|