Properties of mbox message in mbox module in Python

Posted by Rajasankar on Stack Overflow See other posts from Stack Overflow or by Rajasankar
Published on 2012-10-21T16:57:39Z Indexed on 2012/10/21 17:00 UTC
Read the original article Hit count: 204

Filed under:
|
|

I trying my luck to manage my mailbox with python.

My example code is

for eachmail in mailbox.mbox(mboxfile):
    print eachmail['From']

I got following by printing entire content.

Delivered-To
Subject
To
Content-Type
MIME-Version
Message-Id

Is there any full document showing what are all the properties I can get from the mbox message instance? Python docs doesn't specify any of these http://docs.python.org/library/mailbox.html#mailbox.mbox

© Stack Overflow or respective owner

Related posts about python

Related posts about email