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
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
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
Hello, everyone,
I'm in the process of learning how to use the mailbox module with python
3.2. I've noticed the following seemingly inconsistent behavior:
if I call a Maildir object directly, the module works perfectly. I can,
for example, call
mailbox.Maildir("~/Maildir").
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
Hi all. I am trying to use mailbox module, mbox class like this:
import mailbox
m1 = mailbox.mbox('./ra9ftm2')
But it gives the following:
ra9ftm:/home/ra9ftm/pyemail# python mbox1.py
Traceback (most recent call last):
File "mbox1.py", line 2, in ?
m1 = mai
arge maildir folder will be pretty quick. Following the same logic, I
just need the unique names and the flags. Now, I know the flags are in
the name, but I can't find anyway in the mailbox module to get them.
So, should I just run some text parsing on the filenames, using
os.listdir? Given
Nirnimesh wrote in news:1158840271.942540.85640
@d34g2000cwd.googlegroups.com in comp.lang.python:
> I want to extract emails from an mbox-type file which contains a number
> of individual emails.
>
> I tried the python mailbox and email modules individually, but I'm
> unable to combine them to g
Nirnimesh wrote:
> I want to extract emails from an mbox-type file which contains a number
> of individual emails.
>
> I tried the python mailbox and email modules individually, but I'm
> unable to combine them to get what I want. Mailbox allows me to iterate
> over all the mails but doesn't give
I want to extract emails from an mbox-type file which contains a number
of individual emails.
I tried the python mailbox and email modules individually, but I'm
unable to combine them to get what I want. Mailbox allows me to iterate
over all the mails but doesn't give me access the individual mess
10 matches
Mail list logo