Message146801
More specifically, this happens if the Maildir instance is created two seconds before items() is called:
>>> import time
>>> from mailbox import Maildir
>>> x = Maildir('test') # has messages
>>> time.sleep(2.5)
>>> x.items()
[]
This happens because __init__() doesn't populate _toc, and mtimes haven't changed either, so _refresh() doesn't populate _toc either. |
|
Date |
User |
Action |
Args |
2011-11-01 19:29:20 | petri.lehtinen | set | recipients:
+ petri.lehtinen, georg.brandl, benjamin.peterson, r.david.murray, marco.ghidinelli |
2011-11-01 19:29:20 | petri.lehtinen | set | messageid: <1320175760.01.0.173486103354.issue13254@psf.upfronthosting.co.za> |
2011-11-01 19:29:19 | petri.lehtinen | link | issue13254 messages |
2011-11-01 19:29:19 | petri.lehtinen | create | |
|