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

Tony Meyer tameyer at ihug.co.nz
Sun May 30 23:25:40 EDT 2004

>     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.

Do you get any error, or does the script simply complete without printing

Try putting something else in the loop ("print 'here'" or "print msg" or
something like that), to see if the loop is going through any iterations at

=Tony Meyer

Please always include the list (spambayes at python.org) in your replies
(reply-all), and please don't send me personal mail about SpamBayes. This
way, you get everyone's help, and avoid a lack of replies when I'm busy.

More information about the Spambayes mailing list