--- qmail-qstat.orig	Sat Feb  2 18:40:30 2002
+++ qmail-qstat	Sat Feb  2 18:42:01 2002
@@ -1,9 +1,9 @@
 #!/bin/sh
 # WARNING: This file was auto-generated. Do not edit!
 cd /var/qmail
-messdirs=`echo queue/mess/* | wc -w`
-messfiles=`find queue/mess/* -print | wc -w`
-tododirs=`echo queue/todo/* | wc -w`
-todofiles=`find queue/todo/* -print | wc -w`
-echo messages in queue: `expr $messfiles - $messdirs`
-echo messages in queue but not yet preprocessed: `expr $todofiles - $tododirs`
+remotefiles=`find queue/remote/ -type f -print | wc -w`
+localfiles=`find queue/local/ -type f -print | wc -w`
+todofiles=`find queue/todo/ -type f -print | wc -w`
+echo messages in remote queue: $remotefiles
+echo messages in local queue: $localfiles
+echo messages in queue but not yet preprocessed: $todofiles
