diff --git a/CHANGELOG.txt b/CHANGELOG.txt new file mode 100644 index 0000000..349be4c --- /dev/null +++ b/CHANGELOG.txt @@ -0,0 +1,2 @@ +0.1.3: +- Added ambigious (4xx) response code handling diff --git a/MANIFEST.in b/MANIFEST.in index 4b9da9a..88640bd 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,6 +1,7 @@ include AUTHORS include LICENSE include README.rst +include CHANGELOG.txt recursive-include validate_email * prune tests recursive-exclude tests * diff --git a/setup.py b/setup.py index 773093f..99ae080 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ class PostBuildPyCommand(build_py): setup( name='py3-validate-email', - version='0.1.2', + version='0.1.3', packages=find_packages(exclude=['tests']), install_requires=['dnspython'], author='László Károlyi', diff --git a/validate_email/mx_check.py b/validate_email/mx_check.py index 269f5bc..1f8f988 100644 --- a/validate_email/mx_check.py +++ b/validate_email/mx_check.py @@ -57,4 +57,8 @@ def mx_check( return None if code == 250: return True + if 400 <= code <= 499: + # Ambigious return code, can be graylist, or temporary + # problems + return None return False