From: Russell Jones Date: Fri, 3 Jan 2014 11:26:56 +0000 (-0800) Subject: Update Yahoo! Mail Exchanger (MX) pattern. X-Git-Tag: v0.3.5^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=1075691e64737e552bd8c0e5754b57302c589ea2;p=flanker.git Update Yahoo! Mail Exchanger (MX) pattern. --- diff --git a/flanker/addresslib/__init__.py b/flanker/addresslib/__init__.py index ffe952f..2326ab4 100644 --- a/flanker/addresslib/__init__.py +++ b/flanker/addresslib/__init__.py @@ -25,7 +25,7 @@ from flanker.addresslib.plugins import google mx_cache = RedisCache() dns_lookup = DNSLookup() -YAHOO_PATTERN = re.compile(r'''.*\.yahoodns\.net$''') +YAHOO_PATTERN = re.compile(r'''mta[0-9]+\.am[0-9]+\.yahoodns\.net$''') GMAIL_PATTERN = re.compile(r'''.*gmail-smtp-in\.l\.google.com$''') AOL_PATTERN = re.compile(r'''.*\.mx\.aol\.com$''') ICLOUD_PATTERN = re.compile(r'''.*\.icloud\.com\.akadns\.net$''') diff --git a/setup.py b/setup.py index e8543d8..ec84ed1 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ from setuptools import setup, find_packages setup(name='flanker', - version='0.4.4', + version='0.4.5', description='Mailgun Parsing Tools', long_description=open('README.rst').read(), classifiers=[], diff --git a/tests/addresslib/plugins/yahoo_test.py b/tests/addresslib/plugins/yahoo_test.py index 29318e1..e814420 100644 --- a/tests/addresslib/plugins/yahoo_test.py +++ b/tests/addresslib/plugins/yahoo_test.py @@ -13,7 +13,7 @@ from nose.tools import nottest from ... import skip_if_asked DOMAIN = '@yahoo.com' -SAMPLE_MX = 'sample.yahoodns.net' +SAMPLE_MX = 'mta0.am0.yahoodns.net' @nottest def mock_exchanger_lookup(arg, metrics=False):