- 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 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 2>&1;
- done;
+ 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 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 2>&1;
+ done;
+ fi;
+ if which notmuch >/dev/null 2>&1; then
+ nice -n 19 ${IONICE} notmuch new >/dev/null 2>&1;
+ fi;