[Spambayes] How to get the mailbox data form mboxutil.py

Chuck Amadi chuck at smtl.co.uk
Fri May 28 05:31:16 EDT 2004

Im using mboxutils module:

  courtesy of :  http://cvs.sourceforge.net/viewcvs.py/spambayes/spambayes/spam

Snippet from Skip

especially the getmbox() function.  You'd use it like so:

    import mboxutils
    for msg in mboxutils.getmbox("/var/spool/mail/chucka"):
        print msg['subject']

I run the script but no MailBox results . What else must I do as I thought the
print msg['subject'] would list all the mail box messages by Subject.



More information about the Spambayes mailing list