On Thu, Jun 25, 2009 at 01:57:31AM +0000, George Forman wrote: > It appears we would need to write a script to parse all the messages. > What is an efficient way to get the age of the oldest message in the queue?
If the deferred queue is large enough, it is more efficient to parse the logs, especially if you do this on an ongoing basis, and track the creation and deletion of each queue-id. For small backlogs, just read all the files with "postcat", or adapt (no warranty) the code from "qshape", which reads the undocumented queue file format. -- 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.