mailbox.mbox not locking mbox properly

Chris Jewell chrisj at
Fri Aug 27 20:22:51 CEST 2010

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.

That's why if you want to access mail over NFS, you should use maildir,
rather than mbox, no matter what your programming language.

Chris Jewell      chrisj at      PO Box 1396 Gualala CA USA 95445-1396

More information about the Python-list mailing list