From 9b0a6252cb643ee4f98781cf17c53dc6ca3bc1f9 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Tue, 15 May 2007 14:01:15 +0000 Subject: [PATCH] ignore errors from find in getmail --- getmail | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/getmail b/getmail index d4e815f..1f66e07 100755 --- a/getmail +++ b/getmail @@ -23,10 +23,10 @@ if [ -z "$CRON" ] || kill -0 `pgrep -U $(id -u) -x $MUA` 2>/dev/null; then 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' ';' \ - -printf '%f\000'|xargs -0 -rn 1 ~/bin/deletemailbox -a $account >/dev/null; + -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 \ - -rn 1 /home/don/bin/deletemailbox -a $account >/dev/null; + -rn 1 /home/don/bin/deletemailbox -a $account >/dev/null 2>&1; done; fi; fi; -- 2.39.2