Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > mailbox module

Reply
Thread Tools

mailbox module

 
 
ra9ftm
Guest
Posts: n/a
 
      08-26-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?

 
Reply With Quote
 
 
 
 
ra9ftm
Guest
Posts: n/a
 
      08-26-2008
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?

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mailbox module difficulties Eduardo Alvarez Python 3 11-28-2011 06:10 PM
mailbox module, Maildir, and flags jesse.k.rosenthal@gmail.com Python 0 09-11-2007 12:29 AM
Working with email and mailbox module Nirnimesh Python 2 09-21-2006 07:48 PM
Re: module docstring, documentation,anything? please note is the module type/object NOT some module Maric Michaud Python 0 06-24-2006 12:42 PM
Perl module to clear pop mailbox? AcCeSsDeNiEd Perl Misc 4 10-08-2003 05:24 AM



Advertisments