mailbox module

R

ra9ftm

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?
 
R

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:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,189
Members
46,735
Latest member
HikmatRamazanov

Latest Threads

Top