From: Don Armstrong Date: Fri, 12 Jun 2009 22:45:04 +0000 (+0000) Subject: * update getmail X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=1a8f9173abd091c284082cccbb41bfb5763c33ad;p=bin.git * update getmail --- diff --git a/getmail b/getmail index 94808dd..09ec4bc 100755 --- a/getmail +++ b/getmail @@ -40,7 +40,7 @@ if [ -z "$CRON" ] || kill -0 `pgrep -U $(id -u) -x $MUA` 2>/dev/null; then # Clean the lists up too for account in bugs lists; do find /home/don/Mail/$account -maxdepth 1 -mindepth 1 -type d \ - -exec sh -c 'test $(find {} -type f |wc -l) -eq 0' ';' \ + -exec sh -c 'test $(find "{}" -type f |wc -l) -eq 0' ';' \ -printf '%f\000'|xargs -0 -rn 1 ~/bin/deletemailbox -a $account >/dev/null 2>&1; find /home/don/Mail/$account -maxdepth 2 -mindepth 2 -iname 'new' \ -type d -ctime +60 -printf '%h\n'|xargs -rn 1 basename|xargs \