Tooling for parse emails in Rapid7 InsightConnect plugins.
pip install python-eml-parser
Simple!
from python-eml-parser.email_parser import EmailParser
from email import message_from_string
email_parser = EmailParser()
email = email_parser.make_email_from_raw(
self.log, message_from_string(raw_email), mailbox_id
)
Contributions are welcome! This project utilizes black
and pre-commit for handling code
style. Simply follow the instructions for installing pre-commit and
run pre-commit install
in the repository after cloning and you will
be on your way to contributing!
- 2.0.1 - Adding in a default of empty string if there is no
From
section in an email - 2.0.0 - MD5, SHA1, and SHA256 Indicators for Base64 Content are now hashes of the decoded Base64 Content
- 1.0.0 - Initial release