Re: mailbox module difficulties

2011-11-28 Thread Eduardo Alvarez
On 2011-11-28, Peter Otten <__pete...@web.de> wrote: > Eduardo Alvarez wrote: > >> however, if I do the following: >> >> b = mailbox.Maildir("~/Maildir") >> b.items() >> >> I get an empty list. >> >> I don't understand why this is so, specially since the last example in >> the documentation show

Re: mailbox module difficulties

2011-11-28 Thread Peter Otten
Eduardo Alvarez wrote: > however, if I do the following: > > b = mailbox.Maildir("~/Maildir") > b.items() > > I get an empty list. > > I don't understand why this is so, specially since the last example in > the documentation shows a reference to a Maildir object being created. > Why does this

Re: mailbox module difficulties

2011-11-28 Thread Chris Angelico
On Tue, Nov 29, 2011 at 4:21 AM, Eduardo Alvarez 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.M

Re: mailbox module

2008-08-26 Thread ra9ftm
ok, may be it is truth, because class UnixMailbox is working. I found it in "Depricated classess and methods" in manual :( here is only version 2.4 in Debian ra9ftm: > I am using Debian 4.0 Etch for my tests. May be old version of python > in this repository? -- http://mail.python.org/m