Skip to main content

Rapid7 InsightConnect email parser for email plugins

Project description

InsightConnect Integrations Email Parser

pre-commit Code style: black Markdown Lint Unit testing

Tooling for parse emails in Rapid7 InsightConnect plugins.

Installation

pip install python-eml-parser

Use

Simple!

Python

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

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!

Changelog

  • 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

python_eml_parser-2.0.1-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file python_eml_parser-2.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for python_eml_parser-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2fb3ff91f69903ff1bd01014e6f3df09b98a3fec37c43c74de7eae194ffc7954
MD5 35703ac1aaf31c6b33188dd4ee9fb1ba
BLAKE2b-256 7335ddbad1285e34327a39d120f7945a99bf32a48d30ee1ff71732906711116d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page