nsbin/hole_mails
Nico Schottelius 9468f9b060 update
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-10-26 23:28:38 +02:00

16 lines
247 B
Bash
Executable file

#!/bin/sh
SLEEP=$1
if [ -z "$SLEEP" ]; then
echo "$0 Zeit zum Schlafen"
exit 1
fi
while true; do
fetchmail >/dev/null
offlineimap
fetchmail >/dev/null
echo "Mails abgeholt, schlafe nun $SLEEP Sekunde(n)"
sleep $SLEEP;
done