This commit is contained in:
László Károlyi 2019-03-03 15:36:03 +01:00
parent 1fba01d47e
commit 2c832c42f7
Signed by: karolyi
GPG Key ID: 2DCAF25E55735BFE
4 changed files with 8 additions and 1 deletions

2
CHANGELOG.txt Normal file
View File

@ -0,0 +1,2 @@
0.1.3:
- Added ambigious (4xx) response code handling

View File

@ -1,6 +1,7 @@
include AUTHORS
include LICENSE
include README.rst
include CHANGELOG.txt
recursive-include validate_email *
prune tests
recursive-exclude tests *

View File

@ -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',

View File

@ -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