postfix queue grep

2009-02-04 Thread Marc Silver
Hi guys, First and foremost, apologies if this message shouldn't be going to this list, but it seemed like the logical place. I have written a small tool for Postfix in Python that duplicates most of the functionality of exiqgrep, a tool that comes bundled with Exim making it easier for

Re: postfix queue grep

2009-02-04 Thread Victor Duchovni
On Wed, Feb 04, 2009 at 10:25:21AM +0200, Marc Silver wrote: The tool is available at http://draenor.org/public/python/pqgrep.py Should you find any bugs/problems, please mail me. The regexp parser is IMHO too fuzzy for production use outside your own environment. It will generated false

Re: postfix queue grep

2009-02-04 Thread Wietse Venema
Victor Duchovni: [ Wietse is it safe to move queue files active - hold - incoming in a short time? Could some recipients be delivered twice by two delivery agents in parallel (both deliveries starting after the second incoming to active transition)? ] Each delivery agent holds a read

active - incoming migration (was: Re: postfix queue grep)

2009-02-04 Thread Victor Duchovni
On Wed, Feb 04, 2009 at 12:24:23PM -0500, Wietse Venema wrote: Victor Duchovni: [ Wietse is it safe to move queue files active - hold - incoming in a short time? Could some recipients be delivered twice by two delivery agents in parallel (both deliveries starting after the second

Re: active - incoming migration (was: Re: postfix queue grep)

2009-02-04 Thread Wietse Venema
Victor Duchovni: On Wed, Feb 04, 2009 at 12:24:23PM -0500, Wietse Venema wrote: Victor Duchovni: [ Wietse is it safe to move queue files active - hold - incoming in a short time? Could some recipients be delivered twice by two delivery agents in parallel (both deliveries starting

Re: postfix queue grep

2009-02-04 Thread Marc Silver
Victor, Thanks for taking the time to look at this. On Wed, 04 Feb 2009 19:17:45 +0200, Victor Duchovni victor.ducho...@morganstanley.com wrote: The regexp parser is IMHO too fuzzy for production use outside your own environment. It will generated false positives with sufficiently

Re: postfix queue grep

2009-02-04 Thread Magnus Bäck
On Thursday, February 05, 2009 at 07:10 CET, Marc Silver ma...@discoverylink.co.za wrote: On Wed, 04 Feb 2009 19:17:45 +0200, Victor Duchovni victor.ducho...@morganstanley.com wrote: This is subject to race conditions. To safely delete messages, they have to moved (postsuper -h) out

Re: postfix queue grep

2009-02-04 Thread Marc Silver
Thanks... I better understand Viktor's original reply now. On Thu, 05 Feb 2009 08:22:25 +0200, Magnus Bäck mag...@dsek.lth.se wrote: No, that doesn't fix the race condition. Between your scan of the queue and the actual removal of the message it could be delivered and replaced by another