From 2c832c42f78386ad0fce42e55176f292e33ab619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20K=C3=A1rolyi?= Date: Sun, 3 Mar 2019 15:36:03 +0100 Subject: [PATCH] 0.1.3 --- CHANGELOG.txt | 2 ++ MANIFEST.in | 1 + setup.py | 2 +- validate_email/mx_check.py | 4 ++++ 4 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 CHANGELOG.txt 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