mimetreeparser is a parser for MIME trees. Given a MIME tree, it extracts the parts (text, html...) and attachments.