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, wrote: Tim Roberts 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 callin

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. Th

Re: mailbox.mbox not locking mbox properly

2010-08-10 Thread Chris Rebert
On Tue, Aug 10, 2010 at 2:01 AM, wrote: > Tim Roberts 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

Re: mailbox.mbox not locking mbox properly

2010-08-10 Thread tinnews
Tim Roberts 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 cal

Re: mailbox.mbox not locking mbox properly

2010-08-09 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 locki

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 a