Update the renamed disposable-email-domains repo address
This commit is contained in:
parent
3f48c066d8
commit
b9ab3b9d39
|
@ -34,7 +34,7 @@ Parameters
|
||||||
|
|
||||||
:code:`check_format`: check whether the email address has a valid structure; defaults to :code:`True`
|
:code:`check_format`: check whether the email address has a valid structure; defaults to :code:`True`
|
||||||
|
|
||||||
:code:`check_blacklist`: check the email against the blacklist of domains downloaded from https://github.com/martenson/disposable-email-domains; defaults to :code:`True`
|
:code:`check_blacklist`: check the email against the blacklist of domains downloaded from https://github.com/disposable-email-domains/disposable-email-domains; defaults to :code:`True`
|
||||||
|
|
||||||
:code:`check_dns`: check the DNS mx-records, defaults to :code:`True`
|
:code:`check_dns`: check the DNS mx-records, defaults to :code:`True`
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ Check whether the given email address conforms to the general format requirement
|
||||||
|
|
||||||
Check whether the domain part of the given email address (the part behind the "@") is known as a disposable and temporary email address domain. These are often used to register dummy users in order to spam or abuse some services.
|
Check whether the domain part of the given email address (the part behind the "@") is known as a disposable and temporary email address domain. These are often used to register dummy users in order to spam or abuse some services.
|
||||||
|
|
||||||
A list of such domains is maintained at https://github.com/martenson/disposable-email-domains, and this module uses that list.
|
A list of such domains is maintained at https://github.com/disposable-email-domains/disposable-email-domains, and this module uses that list.
|
||||||
|
|
||||||
:code:`validate_email_or_fail()` raises :code:`DomainBlacklistedError` if the email address belongs to a blacklisted domain.
|
:code:`validate_email_or_fail()` raises :code:`DomainBlacklistedError` if the email address belongs to a blacklisted domain.
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ class AddressFormatError(EmailValidationError):
|
||||||
class DomainBlacklistedError(EmailValidationError):
|
class DomainBlacklistedError(EmailValidationError):
|
||||||
"""
|
"""
|
||||||
Raised when the domain of the email address is blacklisted on
|
Raised when the domain of the email address is blacklisted on
|
||||||
https://github.com/martenson/disposable-email-domains.
|
https://github.com/disposable-email-domains/disposable-email-domains.
|
||||||
"""
|
"""
|
||||||
message = 'Domain blacklisted.'
|
message = 'Domain blacklisted.'
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ TMP_PATH = Path(gettempdir()).joinpath(
|
||||||
f'{gettempprefix()}-py3-validate-email-{geteuid()}')
|
f'{gettempprefix()}-py3-validate-email-{geteuid()}')
|
||||||
TMP_PATH.mkdir(exist_ok=True)
|
TMP_PATH.mkdir(exist_ok=True)
|
||||||
BLACKLIST_URL = (
|
BLACKLIST_URL = (
|
||||||
'https://raw.githubusercontent.com/martenson/disposable-email-domains/'
|
'https://github.com/disposable-email-domains/disposable-email-domains/'
|
||||||
'master/disposable_email_blocklist.conf')
|
'master/disposable_email_blocklist.conf')
|
||||||
LIB_PATH_DEFAULT = Path(__file__).resolve().parent.joinpath('data')
|
LIB_PATH_DEFAULT = Path(__file__).resolve().parent.joinpath('data')
|
||||||
BLACKLIST_FILEPATH_INSTALLED = LIB_PATH_DEFAULT.joinpath('blacklist.txt')
|
BLACKLIST_FILEPATH_INSTALLED = LIB_PATH_DEFAULT.joinpath('blacklist.txt')
|
||||||
|
|
Loading…
Reference in New Issue