# See if the server exists
if [ -z "$CRON" ] || kill -0 `pgrep -U $(id -u) -x $MUA` 2>/dev/null; then
if ping -q -c 3 $IMAPHOST >/dev/null; then
- nice -n 19 offlineimap -o -u Noninteractive.Basic 2>/dev/null |grep validity| \
+ nice -n 19 offlineimap -o -u Noninteractive.Basic 2>&1 |grep validity| \
perl -ne 'my ($account,$list) = /UID validity problem for folder ([\w-]+)\.([\w-]+)/;
qx(/home/don/bin/deletemailbox -a $account $list > /dev/null);';
fi;