On Tue, Nov 29, 2011 at 4:21 AM, Eduardo Alvarez <!nospam!astrochelon...@gmail.com> wrote: > if I call a Maildir object directly, the module works perfectly. I can, > for example, call > > mailbox.Maildir("~/Maildir").items() > > and get the expected list of (key,Message) pairs. > > however, if I do the following: > > b = mailbox.Maildir("~/Maildir") > b.items() > > I get an empty list.
They ought to be equivalent. Can you post your whole code? Maybe there's some other difference. ChrisA -- http://mail.python.org/mailman/listinfo/python-list