mbox mail handling

Eric S. Johansson esj at harvee.org
Thu Sep 2 08:24:13 EDT 2004


John Doe wrote:

> I'm looking for some help to:
> access a /var/spool/mail/userbox, which should have 5 or more messages.
> 
> parse each message into mhlib.Message format. So I can pull docs and
> pictures out of each mail message.
> 
> Anybody got a suggestion, two or three? 

here are two:
for read only handling of your mailboxes
http://docs.python.org/lib/module-mailbox.html

for handling individual e-mail messages:
http://docs.python.org/lib/module-email.html




More information about the Python-list mailing list