X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=getmail;h=b824fab4e5b13b7643e12c3748c9ab3be4a9cd85;hb=8141a4df5c77faa99dd7b7357d6520069b32a213;hp=3a5fc553694abdab66157230ff1bf637e99c6bb5;hpb=29cd05848bac58f4bbed496c633d077f1739880b;p=bin.git 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;