mailbox module difficulties

Chris Angelico rosuav at gmail.com
Mon Nov 28 12:29:45 EST 2011


On Tue, Nov 29, 2011 at 4:21 AM, Eduardo Alvarez
<!nospam!astrochelonian at 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



More information about the Python-list mailing list