Petri Lehtinen <pe...@digip.org> added the comment:

It seems to me that there are three separate issues here:

1) Concurrent access to a single-file mailbox will discard some messages even 
if locking is correctly used. This is demonstrated by mailbox-test.patch, which 
despite its age applies on top of 3.2 and fails (at least for me)

2) Detecting changes to mbox files is hard and should be improved.

3) When the TOC of an mbox is re-read, the message keys should probably be kept 
intact. Otherwise, the application would need to prepare for the fact that keys 
can change without notice in the middle of a loop, for example.

The first point is a serious bug that should be fixed somehow.

The second point has been discussed in greath lengths, but it strikes me that 
the mtime tracking has not been suggested. AFAIK, this is what most/all mbox 
readers do. The toc should be re-read when the mtime changes and/or is newer 
than atime.

The third point also sounds important, but might be tricky to implement.

----------
nosy: +petri.lehtinen

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue1599254>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to