Bug#401395: mailbox.Maildir re-reads directory too often (on each lookup, etc)

2007-05-04 Thread Matthias Klose
please answer the upstream question, found at http://python.org/sf/1607951 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]

Bug#401395: mailbox.Maildir re-reads directory too often (on each lookup, etc)

2007-05-04 Thread Josh Triplett
Matthias Klose wrote: please answer the upstream question, found at http://python.org/sf/1607951 Thank you for letting me know. Response below; please forward to upstream. akuchling wrote: By stat()'ing the directories, do you mean checking the mtime? I think this isn't safe because of the

Bug#401395: mailbox.Maildir re-reads directory too often (on each lookup, etc)

2006-12-02 Thread Josh Triplett
Package: python2.5 Version: 2.5-3.1 Various functions in mailbox.Maildir call self._refresh, which always re-reads the cur and new directories with os.listdir. _refresh should stat each of the two directories first to see if they changed. This cuts processing time of a series of lookups down by