Skip to main content

Port of Ruby version bounce_email to Python to detect bounced emails

Project description

Port of Ruby version bounce_email to Python
------------------------------------------

https://github.com/getoutreach/bounce_email

Setup workinv env
-----------------

mkvirtualenv bounce_email
pip install -r requirements.txt

Run the tests
-------------

nosetests --verbose

Usage
-----

from bounce_email import bounce_email

msg = """ Fill with raw email text
"""
# Do something with bounce info
bounce = bounce_email.BounceEmail(msg)
bounce.is_bounced # True/False
bounce.code # e.g. "5.0.0"
bounce.reason # e.g. "Description of the bounce code"
bounce.bounce_type # "Permanent Failure", "Persistent Transient Failure", "Success" -- BounceEmail::TYPE_HARD_FAIL, TYPE_SOFT_FAIL, TYPE_SUCCESS

Project details


Download files

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

Source Distribution

bounce_email-0.0.3.tar.gz (7.4 kB view details)

Uploaded Source

File details

Details for the file bounce_email-0.0.3.tar.gz.

File metadata

  • Download URL: bounce_email-0.0.3.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bounce_email-0.0.3.tar.gz
Algorithm Hash digest
SHA256 129493f1f15c5577fe330ea68c8bbfefbbcf52db809fec1b9de95c75a8e9295a
MD5 4d214b485c0762868c42f6e9fb8c5408
BLAKE2b-256 50b11317ac7c8401055fb5e160d54b455d31438711a72ffa6640b81dd4e0505a

See more details on using hashes here.

Supported by

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