mailbox module

Discussion in 'Python' started by ra9ftm, Aug 26, 2008.

  1. ra9ftm

    ra9ftm Guest

    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?
     
    ra9ftm, Aug 26, 2008
    #1
    1. Advertising

  2. ra9ftm

    ra9ftm Guest

    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?
     
    ra9ftm, Aug 26, 2008
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. - Steve -

    Creating Exchange Mailbox

    - Steve -, Jun 14, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    568
    Trevor Benedict R
    Jun 15, 2004
  2. Nirnimesh
    Replies:
    2
    Views:
    312
    Rob Williscroft
    Sep 21, 2006
  3. Replies:
    0
    Views:
    347
  4. Eduardo Alvarez

    mailbox module difficulties

    Eduardo Alvarez, Nov 28, 2011, in forum: Python
    Replies:
    3
    Views:
    150
    Eduardo Alvarez
    Nov 28, 2011
  5. AcCeSsDeNiEd

    Perl module to clear pop mailbox?

    AcCeSsDeNiEd, Oct 7, 2003, in forum: Perl Misc
    Replies:
    4
    Views:
    195
    AcCeSsDeNiEd
    Oct 8, 2003
Loading...

Share This Page