Updates from source repo
This commit is contained in:
@@ -2,6 +2,6 @@ Please note that this project is a mirror of the following project:
|
||||
|
||||
<https://github.com/martenson/disposable-email-domains>
|
||||
|
||||
If you feel a domain should or shouldn't be on the blacklist, you are
|
||||
If you feel a domain should or shouldn't be on the blocklist, you are
|
||||
encouraged to make a pull request against the source repository, *NOT* this
|
||||
repository.
|
||||
|
||||
@@ -6,12 +6,12 @@ This module provides a set of known disposable email domains.
|
||||
Usage
|
||||
-----
|
||||
|
||||
The blacklist is a Python ``set`` containing all domains in the blacklist:
|
||||
The blocklist is a Python ``set`` containing all domains in the blocklist:
|
||||
|
||||
::
|
||||
|
||||
>>> from disposable_email_domains import blacklist
|
||||
>>> 'bearsarefuzzy.com' in blacklist
|
||||
>>> from disposable_email_domains import blocklist
|
||||
>>> 'bearsarefuzzy.com' in blocklist
|
||||
True
|
||||
|
||||
The domains are guaranteed to be fully lowercased and stripped of whitespace.
|
||||
@@ -25,7 +25,7 @@ The source of this list is the `disposable-email-domains`_ project.
|
||||
|
||||
This module attempts to provide a mirror of that project as a Python module.
|
||||
|
||||
If you feel a domain should or shouldn't be on the blacklist, you are
|
||||
If you feel a domain should or shouldn't be on the blocklist, you are
|
||||
encouraged to make a pull request against the `source repository`_.
|
||||
|
||||
.. _source repository: https://github.com/martenson/disposable-email-domains
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
lists = {
|
||||
'blacklist': 'source_data/disposable_email_blacklist.conf',
|
||||
'whitelist': 'source_data/whitelist.conf',
|
||||
'blocklist': 'source_data/disposable_email_blocklist.conf',
|
||||
'allowlist': 'source_data/allowlist.conf',
|
||||
}
|
||||
|
||||
|
||||
def parse_list(listname, filename):
|
||||
return "{} = {{\n{}}}".format(
|
||||
listname,
|
||||
@@ -14,4 +15,10 @@ def parse_list(listname, filename):
|
||||
])
|
||||
)
|
||||
|
||||
|
||||
print("\n\n".join([parse_list(*args) for args in sorted(lists.items())]))
|
||||
|
||||
print("""
|
||||
# For backwards compatibility
|
||||
locals()['tsilkcalb'[::-1]] = blocklist
|
||||
locals()['tsiletihw'[::-1]] = allowlist""")
|
||||
|
||||
@@ -1,4 +1,179 @@
|
||||
blacklist = {
|
||||
allowlist = {
|
||||
'123mail.org',
|
||||
'126.com',
|
||||
'139.com',
|
||||
'150mail.com',
|
||||
'150ml.com',
|
||||
'163.com',
|
||||
'16mail.com',
|
||||
'2-mail.com',
|
||||
'420blaze.it',
|
||||
'4email.net',
|
||||
'50mail.com',
|
||||
'8chan.co',
|
||||
'aaathats3as.com',
|
||||
'airmail.cc',
|
||||
'airpost.net',
|
||||
'allmail.net',
|
||||
'antichef.com',
|
||||
'antichef.net',
|
||||
'bestmail.us',
|
||||
'bluewin.ch',
|
||||
'c2.hu',
|
||||
'cluemail.com',
|
||||
'cocaine.ninja',
|
||||
'cock.email',
|
||||
'cock.li',
|
||||
'cock.lu',
|
||||
'cumallover.me',
|
||||
'dfgh.net',
|
||||
'dicksinhisan.us',
|
||||
'dicksinmyan.us',
|
||||
'elitemail.org',
|
||||
'emailcorner.net',
|
||||
'emailengine.net',
|
||||
'emailengine.org',
|
||||
'emailgroups.net',
|
||||
'emailplus.org',
|
||||
'emailuser.net',
|
||||
'eml.cc',
|
||||
'f-m.fm',
|
||||
'fast-email.com',
|
||||
'fast-mail.org',
|
||||
'fastem.com',
|
||||
'fastemail.us',
|
||||
'fastemailer.com',
|
||||
'fastest.cc',
|
||||
'fastimap.com',
|
||||
'fastmail.cn',
|
||||
'fastmail.co.uk',
|
||||
'fastmail.com',
|
||||
'fastmail.com.au',
|
||||
'fastmail.es',
|
||||
'fastmail.fm',
|
||||
'fastmail.im',
|
||||
'fastmail.in',
|
||||
'fastmail.jp',
|
||||
'fastmail.mx',
|
||||
'fastmail.net',
|
||||
'fastmail.nl',
|
||||
'fastmail.se',
|
||||
'fastmail.to',
|
||||
'fastmail.tw',
|
||||
'fastmail.uk',
|
||||
'fastmail.us',
|
||||
'fastmailbox.net',
|
||||
'fastmessaging.com',
|
||||
'fea.st',
|
||||
'firemail.cc',
|
||||
'fmail.co.uk',
|
||||
'fmailbox.com',
|
||||
'fmgirl.com',
|
||||
'fmguy.com',
|
||||
'freemail.hu',
|
||||
'ftml.net',
|
||||
'getbackinthe.kitchen',
|
||||
'gmx.com',
|
||||
'gmx.us',
|
||||
'goat.si',
|
||||
'h-mail.us',
|
||||
'hailmail.net',
|
||||
'hitler.rocks',
|
||||
'horsefucker.org',
|
||||
'hush.ai',
|
||||
'hush.com',
|
||||
'hushmail.com',
|
||||
'hushmail.me',
|
||||
'imap-mail.com',
|
||||
'imap.cc',
|
||||
'imapmail.org',
|
||||
'inoutbox.com',
|
||||
'internet-e-mail.com',
|
||||
'internet-mail.org',
|
||||
'internetemails.net',
|
||||
'internetmailing.net',
|
||||
'jetemail.net',
|
||||
'justemail.net',
|
||||
'letterboxes.org',
|
||||
'mail-central.com',
|
||||
'mail-page.com',
|
||||
'mail2world.com',
|
||||
'mailandftp.com',
|
||||
'mailas.com',
|
||||
'mailbolt.com',
|
||||
'mailc.net',
|
||||
'mailcan.com',
|
||||
'mailforce.net',
|
||||
'mailftp.com',
|
||||
'mailhaven.com',
|
||||
'mailingaddress.org',
|
||||
'mailite.com',
|
||||
'mailmight.com',
|
||||
'mailnew.com',
|
||||
'mailsent.net',
|
||||
'mailservice.ms',
|
||||
'mailup.net',
|
||||
'mailworks.org',
|
||||
'memeware.net',
|
||||
'ml1.net',
|
||||
'mm.st',
|
||||
'myfastmail.com',
|
||||
'mymacmail.com',
|
||||
'naver.com',
|
||||
'neverbox.com',
|
||||
'nigge.rs',
|
||||
'nospammail.net',
|
||||
'nus.edu.sg',
|
||||
'onet.pl',
|
||||
'ownmail.net',
|
||||
'petml.com',
|
||||
'postinbox.com',
|
||||
'postpro.net',
|
||||
'proinbox.com',
|
||||
'promessage.com',
|
||||
'qq.com',
|
||||
'realemail.net',
|
||||
'reallyfast.biz',
|
||||
'reallyfast.info',
|
||||
'recursor.net',
|
||||
'redchan.it',
|
||||
'rushpost.com',
|
||||
'safe-mail.net',
|
||||
'sent.as',
|
||||
'sent.at',
|
||||
'sent.com',
|
||||
'shitposting.agency',
|
||||
'sibmail.com',
|
||||
'sneakemail.com',
|
||||
'snkmail.com',
|
||||
'spamcannon.com',
|
||||
'spamcannon.net',
|
||||
'spamgourmet.com',
|
||||
'spamgourmet.net',
|
||||
'spamgourmet.org',
|
||||
'speedpost.net',
|
||||
'speedymail.org',
|
||||
'ssl-mail.com',
|
||||
'swift-mail.com',
|
||||
'tfwno.gf',
|
||||
'the-fastest.net',
|
||||
'the-quickest.com',
|
||||
'theinternetemail.com',
|
||||
'tweakly.net',
|
||||
'veryfast.biz',
|
||||
'veryspeedy.net',
|
||||
'waifu.club',
|
||||
'warpmail.net',
|
||||
'xoxy.net',
|
||||
'xsmail.com',
|
||||
'yahoo.com.ph',
|
||||
'yahoo.com.vn',
|
||||
'yeah.net',
|
||||
'yepmail.net',
|
||||
'your-mail.com',
|
||||
}
|
||||
|
||||
blocklist = {
|
||||
'0-00.usa.cc',
|
||||
'0-mail.com',
|
||||
'001.igg.biz',
|
||||
@@ -2955,177 +3130,6 @@ blacklist = {
|
||||
'zzz.com',
|
||||
}
|
||||
|
||||
whitelist = {
|
||||
'123mail.org',
|
||||
'126.com',
|
||||
'139.com',
|
||||
'150mail.com',
|
||||
'150ml.com',
|
||||
'163.com',
|
||||
'16mail.com',
|
||||
'2-mail.com',
|
||||
'420blaze.it',
|
||||
'4email.net',
|
||||
'50mail.com',
|
||||
'8chan.co',
|
||||
'aaathats3as.com',
|
||||
'airmail.cc',
|
||||
'airpost.net',
|
||||
'allmail.net',
|
||||
'antichef.com',
|
||||
'antichef.net',
|
||||
'bestmail.us',
|
||||
'bluewin.ch',
|
||||
'c2.hu',
|
||||
'cluemail.com',
|
||||
'cocaine.ninja',
|
||||
'cock.email',
|
||||
'cock.li',
|
||||
'cock.lu',
|
||||
'cumallover.me',
|
||||
'dfgh.net',
|
||||
'dicksinhisan.us',
|
||||
'dicksinmyan.us',
|
||||
'elitemail.org',
|
||||
'emailcorner.net',
|
||||
'emailengine.net',
|
||||
'emailengine.org',
|
||||
'emailgroups.net',
|
||||
'emailplus.org',
|
||||
'emailuser.net',
|
||||
'eml.cc',
|
||||
'f-m.fm',
|
||||
'fast-email.com',
|
||||
'fast-mail.org',
|
||||
'fastem.com',
|
||||
'fastemail.us',
|
||||
'fastemailer.com',
|
||||
'fastest.cc',
|
||||
'fastimap.com',
|
||||
'fastmail.cn',
|
||||
'fastmail.co.uk',
|
||||
'fastmail.com',
|
||||
'fastmail.com.au',
|
||||
'fastmail.es',
|
||||
'fastmail.fm',
|
||||
'fastmail.im',
|
||||
'fastmail.in',
|
||||
'fastmail.jp',
|
||||
'fastmail.mx',
|
||||
'fastmail.net',
|
||||
'fastmail.nl',
|
||||
'fastmail.se',
|
||||
'fastmail.to',
|
||||
'fastmail.tw',
|
||||
'fastmail.uk',
|
||||
'fastmail.us',
|
||||
'fastmailbox.net',
|
||||
'fastmessaging.com',
|
||||
'fea.st',
|
||||
'firemail.cc',
|
||||
'fmail.co.uk',
|
||||
'fmailbox.com',
|
||||
'fmgirl.com',
|
||||
'fmguy.com',
|
||||
'freemail.hu',
|
||||
'ftml.net',
|
||||
'getbackinthe.kitchen',
|
||||
'gmx.com',
|
||||
'gmx.us',
|
||||
'goat.si',
|
||||
'h-mail.us',
|
||||
'hailmail.net',
|
||||
'hitler.rocks',
|
||||
'horsefucker.org',
|
||||
'hush.ai',
|
||||
'hush.com',
|
||||
'hushmail.com',
|
||||
'hushmail.me',
|
||||
'imap-mail.com',
|
||||
'imap.cc',
|
||||
'imapmail.org',
|
||||
'inoutbox.com',
|
||||
'internet-e-mail.com',
|
||||
'internet-mail.org',
|
||||
'internetemails.net',
|
||||
'internetmailing.net',
|
||||
'jetemail.net',
|
||||
'justemail.net',
|
||||
'letterboxes.org',
|
||||
'mail-central.com',
|
||||
'mail-page.com',
|
||||
'mail2world.com',
|
||||
'mailandftp.com',
|
||||
'mailas.com',
|
||||
'mailbolt.com',
|
||||
'mailc.net',
|
||||
'mailcan.com',
|
||||
'mailforce.net',
|
||||
'mailftp.com',
|
||||
'mailhaven.com',
|
||||
'mailingaddress.org',
|
||||
'mailite.com',
|
||||
'mailmight.com',
|
||||
'mailnew.com',
|
||||
'mailsent.net',
|
||||
'mailservice.ms',
|
||||
'mailup.net',
|
||||
'mailworks.org',
|
||||
'memeware.net',
|
||||
'ml1.net',
|
||||
'mm.st',
|
||||
'myfastmail.com',
|
||||
'mymacmail.com',
|
||||
'naver.com',
|
||||
'neverbox.com',
|
||||
'nigge.rs',
|
||||
'nospammail.net',
|
||||
'nus.edu.sg',
|
||||
'onet.pl',
|
||||
'ownmail.net',
|
||||
'petml.com',
|
||||
'postinbox.com',
|
||||
'postpro.net',
|
||||
'proinbox.com',
|
||||
'promessage.com',
|
||||
'qq.com',
|
||||
'realemail.net',
|
||||
'reallyfast.biz',
|
||||
'reallyfast.info',
|
||||
'recursor.net',
|
||||
'redchan.it',
|
||||
'rushpost.com',
|
||||
'safe-mail.net',
|
||||
'sent.as',
|
||||
'sent.at',
|
||||
'sent.com',
|
||||
'shitposting.agency',
|
||||
'sibmail.com',
|
||||
'sneakemail.com',
|
||||
'snkmail.com',
|
||||
'spamcannon.com',
|
||||
'spamcannon.net',
|
||||
'spamgourmet.com',
|
||||
'spamgourmet.net',
|
||||
'spamgourmet.org',
|
||||
'speedpost.net',
|
||||
'speedymail.org',
|
||||
'ssl-mail.com',
|
||||
'swift-mail.com',
|
||||
'tfwno.gf',
|
||||
'the-fastest.net',
|
||||
'the-quickest.com',
|
||||
'theinternetemail.com',
|
||||
'tweakly.net',
|
||||
'veryfast.biz',
|
||||
'veryspeedy.net',
|
||||
'waifu.club',
|
||||
'warpmail.net',
|
||||
'xoxy.net',
|
||||
'xsmail.com',
|
||||
'yahoo.com.ph',
|
||||
'yahoo.com.vn',
|
||||
'yeah.net',
|
||||
'yepmail.net',
|
||||
'your-mail.com',
|
||||
}
|
||||
# For backwards compatibility
|
||||
locals()['tsilkcalb'[::-1]] = blocklist
|
||||
locals()['tsiletihw'[::-1]] = allowlist
|
||||
|
||||
2
setup.py
2
setup.py
@@ -29,7 +29,7 @@ setup(
|
||||
'Programming Language :: Python :: 3.4',
|
||||
'Programming Language :: Python :: 3.5',
|
||||
],
|
||||
keywords='disposable email domains blacklist',
|
||||
keywords='disposable email domains blocklist',
|
||||
packages=['disposable_email_domains'],
|
||||
extras_require={
|
||||
'dev': ['check-manifest'],
|
||||
|
||||
9
tests/test_allowlist.py
Normal file
9
tests/test_allowlist.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from disposable_email_domains import allowlist
|
||||
|
||||
|
||||
def test_allowlist_inclusion():
|
||||
assert 'spamcannon.com' in allowlist
|
||||
|
||||
|
||||
def test_allowlist_exclusion():
|
||||
assert 'spamcowboy.com' not in allowlist
|
||||
@@ -1,9 +0,0 @@
|
||||
from disposable_email_domains import blacklist
|
||||
|
||||
|
||||
def test_blacklist_inclusion():
|
||||
assert 'spamcowboy.com' in blacklist
|
||||
|
||||
|
||||
def test_blacklist_exclusion():
|
||||
assert 'spamcannon.com' not in blacklist
|
||||
9
tests/test_blocklist.py
Normal file
9
tests/test_blocklist.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from disposable_email_domains import blocklist
|
||||
|
||||
|
||||
def test_blocklist_inclusion():
|
||||
assert 'spamcowboy.com' in blocklist
|
||||
|
||||
|
||||
def test_blocklist_exclusion():
|
||||
assert 'spamcannon.com' not in blocklist
|
||||
@@ -1,9 +0,0 @@
|
||||
from disposable_email_domains import whitelist
|
||||
|
||||
|
||||
def test_whitelist_inclusion():
|
||||
assert 'spamcannon.com' in whitelist
|
||||
|
||||
|
||||
def test_whitelist_exclusion():
|
||||
assert 'spamcowboy.com' not in whitelist
|
||||
Reference in New Issue
Block a user