From d2464a0fc4345255c35e7d5379edaa6806e7e93b Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Mon, 18 Feb 2013 17:48:06 +0000 Subject: [PATCH] pull-mail: add --force option; extend running times --- pull-mail | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pull-mail b/pull-mail index 9653250..2a33895 100755 --- a/pull-mail +++ b/pull-mail @@ -5,16 +5,16 @@ if [ -f ~/.nomail ] && [ "$1" != --force ]; then fi loadavg="$(cut -d. -f1 /proc/loadavg)" -if [ "$loadavg" -ge 5 ]; then +if [ "$loadavg" -ge 5 ] && [ "$1" != --force ]; then # System load is too high. Don't contribute to it. exit 0 fi -bsmtp-pull gluck +bsmtp-pull master hour="$(date +%H)" case $hour in - 0[0-289]|[12]*) + 0[0-4789]|[12]*) date >> ~/.fetchmail/log fetchmail >> ~/.fetchmail/log logrotate -s ~/.fetchmail/logrotate.status ~/.fetchmail/logrotate.conf -- 2.30.2