hole_mails 247 Bytes
Newer Older
Nico Schottelius's avatar
Nico Schottelius committed
1 2 3 4 5 6 7 8 9 10
#!/bin/sh

SLEEP=$1

if [ -z "$SLEEP" ]; then
   echo "$0 Zeit zum Schlafen"
   exit 1
fi

while true; do
11
   fetchmail >/dev/null
Nico Schottelius's avatar
Nico Schottelius committed
12
   offlineimap
Nico Schottelius's avatar
update  
Nico Schottelius committed
13
   fetchmail >/dev/null
14
   echo "Mails abgeholt, schlafe nun $SLEEP Sekunde(n)"
Nico Schottelius's avatar
Nico Schottelius committed
15 16
   sleep $SLEEP;
done