Skip to content

IMIO/imio.email.parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imio.email.parser

This package can parse emails and generate a PDF file of their content.

It is mainly used by package imio.email.dms.

Features

  1. select relevant email messages (e.g. email forwarded as an attachment)
  2. parse emails (headers, attachments, ...)
  3. generate a PDF email preview with email2pdf package

Usage

mail = email.message_from_string(mail_body)
parser = Parser(mail)
print(parser.headers)
print(parser.attachments)
parser.generate_pdf(pdf_path)

Requirements

package wkhtmltopdf

Contribute

License

The project is licensed under the GPLv2.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages