This package can parse emails and generate a PDF file of their content.
It is mainly used by package imio.email.dms.
- select relevant email messages (e.g. email forwarded as an attachment)
- parse emails (headers, attachments, ...)
- generate a PDF email preview with email2pdf package
mail = email.message_from_string(mail_body)
parser = Parser(mail)
print(parser.headers)
print(parser.attachments)
parser.generate_pdf(pdf_path)
package wkhtmltopdf
- Issue Tracker: https://github.com/IMIO/imio.email.parser/issues
- Source Code: https://github.com/IMIO/imio.email.parser
The project is licensed under the GPLv2.