nsbin/hole_mails
Nico Schottelius 9addc01d6b add offlineimap to sync other imap server
Signed-off-by: Nico Schottelius <nico@ikn.ethz.ch>
2008-11-28 12:26:48 +01:00

15 lines
225 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
echo "Mails abgeholt, schlafe nun $SLEEP Sekunde(n)"
sleep $SLEEP;
done