On Wed, Jul 08, 2009 at 12:44:17PM -0600, LuKreme wrote: > On Jul 7, 2009, at 9:15 AM, Michael Durket <dur...@highwire.stanford.edu> > wrote: > >> So what's the best way to quickly (i.e. less than a few seconds) get the >> current queue count out of Postfix? > > ls -1 [queue directory] | wc -l
The Perl code I posted works when the queue directory is "hashed", as is the case by default with: hash_queue_names = deferred, defer (Note, "defer" does not store queued messages, just the associated "bounce logs"). -- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:majord...@postfix.org?body=unsubscribe%20postfix-users> If my response solves your problem, the best way to thank me is to not send an "it worked, thanks" follow-up. If you must respond, please put "It worked, thanks" in the "Subject" so I can delete these quickly.