From: Don Armstrong Date: Thu, 13 Oct 2005 03:59:17 +0000 (+0000) Subject: updated getmail script X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f7bbe0b6230a1ef2279cea678c8b17e0b6f0ec20;p=bin.git updated getmail script --- diff --git a/getmail b/getmail index 77900af..44c2020 100755 --- a/getmail +++ b/getmail @@ -15,7 +15,7 @@ fi; # See if the server exists if [ -z "$CRON" ] || kill -0 `pgrep -U $(id -u) -x $MUA` 2>/dev/null; then if ping -q -c 3 $IMAPHOST >/dev/null; then - nice -n 19 offlineimap -o -u Noninteractive.Basic 2>/dev/null |grep validity| \ + nice -n 19 offlineimap -o -u Noninteractive.Basic 2>&1 |grep validity| \ perl -ne 'my ($account,$list) = /UID validity problem for folder ([\w-]+)\.([\w-]+)/; qx(/home/don/bin/deletemailbox -a $account $list > /dev/null);'; fi;