chiark / gitweb /
superseded by moreutils
[bin.git] / pull-mail
1 #! /bin/sh
2
3 loadavg="$(cut -d. -f1 /proc/loadavg)"
4 if [ "$loadavg" -ge 5 ]; then
5         # System load is too high. Don't contribute to it.
6         exit 0
7 fi
8
9 date >> ~/.fetchmail/log
10 fetchmail >> ~/.fetchmail/log
11 bsmtp-pull gluck
12
13 exit 0