mailbox module

ra9ftm ra9ftm2 at gmail.com
Tue Aug 26 02:40:52 EDT 2008


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 = mailbox.mbox('./ra9ftm2')
AttributeError: 'module' object has no attribute 'mbox'
ra9ftm:/home/ra9ftm/pyemail#


What's wrong?
I am using Debian 4.0 Etch for my tests. May be old version of python
in this repository?




More information about the Python-list mailing list