From: Don Armstrong Date: Tue, 3 Jan 2006 10:14:26 +0000 (+0000) Subject: get rid of option -a requires argument errors X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8141a4df5c77faa99dd7b7357d6520069b32a213;p=bin.git get rid of option -a requires argument errors --- diff --git a/getmail b/getmail index 3a5fc55..b824fab 100755 --- a/getmail +++ b/getmail @@ -17,6 +17,7 @@ if [ -z "$CRON" ] || kill -0 `pgrep -U $(id -u) -x $MUA` 2>/dev/null; then if ping -q -c 3 $IMAPHOST >/dev/null 2>&1; then nice -n 19 offlineimap -o -u Noninteractive.Basic 2>&1 |grep validity| \ perl -ne 'my ($account,$list) = /UID validity problem for folder ([\w-]+)\.([\w-]+)/; + next unless defined $account and length $account; qx(/home/don/bin/deletemailbox -a $account $list > /dev/null);'; fi; fi;