Metadata-Version: 2.4
Name: mail-cleaner
Version: 2.0.0
Summary: Handle and sanitize HTML & text emails
Home-page: https://github.com/maykinmedia/mail-cleaner
Author: Maykin Media
Author-email: support@maykinmedia.nl
License: MIT
Project-URL: Documentation, http://mail-cleaner.readthedocs.io/en/latest/
Project-URL: Changelog, https://github.com/maykinmedia/mail-cleaner/blob/main/CHANGELOG.rst
Project-URL: Bug Tracker, https://github.com/maykinmedia/mail-cleaner/issues
Project-URL: Source Code, https://github.com/maykinmedia/mail-cleaner
Keywords: django,email,sanitize
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: Django
Classifier: Framework :: Django :: 4.2
Classifier: Framework :: Django :: 5.2
Classifier: Intended Audience :: Developers
Classifier: Operating System :: Unix
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
License-File: LICENSE
Requires-Dist: django>=4.2
Requires-Dist: lxml
Provides-Extra: tests
Requires-Dist: pytest; extra == "tests"
Requires-Dist: pytest-django; extra == "tests"
Requires-Dist: tox; extra == "tests"
Requires-Dist: isort; extra == "tests"
Requires-Dist: black; extra == "tests"
Requires-Dist: flake8; extra == "tests"
Provides-Extra: typing
Requires-Dist: django-stubs; extra == "typing"
Provides-Extra: pep8
Requires-Dist: flake8; extra == "pep8"
Provides-Extra: coverage
Requires-Dist: pytest-cov; extra == "coverage"
Provides-Extra: docs
Requires-Dist: sphinx; extra == "docs"
Requires-Dist: sphinx-rtd-theme; extra == "docs"
Provides-Extra: release
Requires-Dist: bumpversion; extra == "release"
Requires-Dist: twine; extra == "release"
Dynamic: license-file

mail-cleaner
============

:Version: 2.0.0
:Source: https://github.com/maykinmedia/mail-cleaner
:Keywords: django, email, sanitize
:PythonVersion: 3.9

|build-status| |code-quality| |black| |coverage| |docs|

|python-versions| |django-versions| |pypi-version|

Handle and sanitize HTML & text emails

.. contents::

.. section-numbering::

Features
========

* Sanitize untrusted links
* Best-effort plain-text message extraction from HTML e-mails

Installation
============

Install
-------

.. code-block:: bash

    pip install mail-cleaner


Usage
=====

See the usage `documentation <https://mail-cleaner.readthedocs.io/en/latest/>`_.

Local development
=================

To install and develop the library locally, use:

.. code-block:: bash

    pip install --no-build-isolation -e .[tests,coverage,docs,pep8,release]


.. |build-status| image:: https://github.com/maykinmedia/mail-cleaner/workflows/Run%20CI/badge.svg
    :alt: Build status
    :target: https://github.com/maykinmedia/mail-cleaner/actions?query=workflow%3A%22Run+CI%22

.. |code-quality| image:: https://github.com/maykinmedia/mail-cleaner/workflows/Code%20quality%20checks/badge.svg
     :alt: Code quality checks
     :target: https://github.com/maykinmedia/mail-cleaner/actions?query=workflow%3A%22Code+quality+checks%22

.. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/psf/black

.. |coverage| image:: https://codecov.io/gh/maykinmedia/mail-cleaner/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/maykinmedia/mail-cleaner
    :alt: Coverage status

.. |docs| image:: https://readthedocs.org/projects/mail-cleaner/badge/?version=latest
    :target: https://mail-cleaner.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status

.. |python-versions| image:: https://img.shields.io/pypi/pyversions/mail-cleaner.svg

.. |django-versions| image:: https://img.shields.io/pypi/djversions/mail-cleaner.svg

.. |pypi-version| image:: https://img.shields.io/pypi/v/mail-cleaner.svg
    :target: https://pypi.org/project/mail-cleaner/
