]> git.donarmstrong.com Git - bin.git/commitdiff
get rid of option -a requires argument errors
authorDon Armstrong <don@donarmstrong.com>
Tue, 3 Jan 2006 10:14:26 +0000 (10:14 +0000)
committerDon Armstrong <don@donarmstrong.com>
Tue, 3 Jan 2006 10:14:26 +0000 (10:14 +0000)
getmail

diff --git a/getmail b/getmail
index 3a5fc553694abdab66157230ff1bf637e99c6bb5..b824fab4e5b13b7643e12c3748c9ab3be4a9cd85 100755 (executable)
--- 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;