On Wed, Feb 24, 1999 at 07:56:09AM +0100, Franky Van Liedekerke wrote:

> Now the strange thing is, all three give back different results (see
> below). And now I wonder why.
> And it's not that the difference is delivered mail, because I know
> that's not the problem. I also know that qmail-qstat and qmHandle use a
> different way of checking the queue, but they should give back the same
> result.
> 
> hercules(root)/var/log/qmail> /var/qmail/bin/qmail-qread >/tmp/ttt
> hercules(root)/var/log/qmail> grep remote /tmp/ttt|grep -v done|wc -l
>      248

This method has a flaw: The lines containing the sender will be
retained by the grep filter, if the sender has the word "remote" in them.

> hercules(root)/var/log/qmail> /var/qmail/bin/qmail-qstat
> messages in queue: 228
> messages in queue but not yet preprocessed: 0

This shows the number of messages in the queue, not how many remote and
local recipients each message has.

> hercules(root)/var/log/qmail> ~/qmHandle/qmHandle -s
> Messages in local queue: 0
> Messages in remote queue: 216
> hercules(root)/var/log/qmail>

I haven't used qmHandle, but I'm assuming it counts the numbers of
*recipients* waiting to be delivered to. So you may have 228 messages, but
some may have multiple recipients, and some of those may have been
delivered-to. qmHandle is reporting the number of pending deliveries, which
could be more or less than the number reported by qmail-qstat.

All this of course assuming that qmail-send is not running, otherwise your
results will change between queue checks as deliveries are completed.

-- 
Anand
System Administrator
Africa Online Ltd
http://www.anand.org

Reply via email to