Skip to content

sugarcrm/bounce_email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages