a python script which will parse an email message
William Park
opengeometry at yahoo.ca
Fri May 28 11:33:31 EDT 2004
Chuck Amadi <chuck at smtl.co.uk> wrote:
> for msg in mboxutils.getmbox("/var/spool/mail/chucka"):
> print msg['subject']
> print msg['body']
>
> I need just the Subject and Body of the all mail messages in the above Mail
> folder
Assuming it's not homework,
formail -X From: -X Subject: -s < /var/spool/mail/chucka
--
William Park, Open Geometry Consulting, <opengeometry at yahoo.ca>
Linux, Bash, Vim, TeX/LaTeX, Python, Mozilla, OpenOffice, Thin-Client
More information about the Python-list
mailing list