]> git.donarmstrong.com Git - bin.git/commitdiff
* update getmail
authorDon Armstrong <don@donarmstrong.com>
Fri, 12 Jun 2009 22:45:04 +0000 (22:45 +0000)
committerDon Armstrong <don@donarmstrong.com>
Fri, 12 Jun 2009 22:45:04 +0000 (22:45 +0000)
getmail

diff --git a/getmail b/getmail
index 94808dde6dc6cf5c8ea8251f40d70f58b836250f..09ec4bc0a5d5ad75859a0d71bea3f0c34d811a99 100755 (executable)
--- 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 \