Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Port of Ruby version bounce_email to Python to detect bounced emails

Project description

Port of Ruby version bounce_email to Python

Setup workinv env

mkvirtualenv bounce_email
pip install -r requirements.txt

Run the tests

nosetests --verbose


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.

Files for bounce_email, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size bounce_email-0.0.3.tar.gz (7.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page