On Thursday, February 05, 2009 at 07:10 CET,
     Marc Silver <[email protected]> wrote:

> On Wed, 04 Feb 2009 19:17:45 +0200, Victor Duchovni  
> <[email protected]> wrote:
>
> > This is subject to race conditions. To safely delete messages,
> > they have to moved (postsuper -h) out of the "active" queue,
> > re-scanned to ensure they still meet the original criteria,
> > selectively deleted, and the FPs moved back into the deferred
> > queue (via postsuper -H), you can then flush FPs back into the
> > incoming queue via "postqueue -i".
> 
> Fair enough... I've only ever done this with mails in the deferred
> queue.  Moving mails into different queues is somewhat beyond the
> scope of the tool, so ideally (and what I still want to implement)
> the ability to specify a particular queue to match against would
> help prevent against this.  Is that a correct assumption?

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 message with the same queue id.

-- 
Magnus Bäck
[email protected]

Reply via email to