qmail-qstat.sh (302B)
1 cd QMAIL 2 messdirs=`echo queue/mess/* | wc -w` 3 messfiles=`find queue/mess/* -print | wc -w` 4 tododirs=`echo queue/todo | wc -w` 5 todofiles=`find queue/todo -print | wc -w` 6 echo messages in queue: `expr $messfiles - $messdirs` 7 echo messages in queue but not yet preprocessed: `expr $todofiles - $tododirs`