Re: mailbox.mbox not locking mbox properly

2010-08-27 Thread Chris Jewell
Even if you replace the python mbox code with something that uses fcntl.flock() to protect against concurrent updating, you should also understand that NFS does *not* provide full Unix filesystem semantics. In particular, Unix flock(2) (which Python's fcntl.flock() wraps) doesn't work over NFS.

Re: mailbox.mbox not locking mbox properly

2010-08-27 Thread John Nagle
On 8/10/2010 2:25 AM, Chris Rebert wrote: On Tue, Aug 10, 2010 at 2:01 AM,tinn...@isbd.co.uk wrote: Tim Robertst...@probo.com wrote: tinn...@isbd.co.uk wrote: I'm using the python mailbox class in a script that processes incoming mail and delivers it to various mbox format mailboxes. It

Re: mailbox.mbox not locking mbox properly

2010-08-10 Thread Tim Roberts
tinn...@isbd.co.uk wrote: I'm using the python mailbox class in a script that processes incoming mail and delivers it to various mbox format mailboxes. It appears that, although I am calling the lock method on the destination before writing to the mbox and calling unlock afterwards the locking

Re: mailbox.mbox not locking mbox properly

2010-08-10 Thread tinnews
Tim Roberts t...@probo.com wrote: tinn...@isbd.co.uk wrote: I'm using the python mailbox class in a script that processes incoming mail and delivers it to various mbox format mailboxes. It appears that, although I am calling the lock method on the destination before writing to the mbox and

Re: mailbox.mbox not locking mbox properly

2010-08-10 Thread Chris Rebert
On Tue, Aug 10, 2010 at 2:01 AM, tinn...@isbd.co.uk wrote: Tim Roberts t...@probo.com wrote: tinn...@isbd.co.uk wrote: I'm using the python mailbox class in a script that processes incoming mail and delivers it to various mbox format mailboxes.  It appears that, although I am calling the

mailbox.mbox not locking mbox properly

2010-08-09 Thread tinnews
I'm using the python mailbox class in a script that processes incoming mail and delivers it to various mbox format mailboxes. It appears that, although I am calling the lock method on the destination before writing to the mbox and calling unlock afterwards the locking isn't working correctly. I