remove DISPOSABLE_FILE_PATH
This commit is contained in:
parent
1b5f059899
commit
a4b113b7fa
|
@ -289,10 +289,6 @@ STATUS_PAGE_URL = os.environ.get("STATUS_PAGE_URL") or "https://status.simplelog
|
|||
# Loading PGP keys when mail_handler runs. To be used locally when init_app is not called.
|
||||
LOAD_PGP_EMAIL_HANDLER = "LOAD_PGP_EMAIL_HANDLER" in os.environ
|
||||
|
||||
DISPOSABLE_FILE_PATH = get_abs_path(
|
||||
os.environ.get("DISPOSABLE_FILE_PATH", "local_data/local_disposable_domains.txt")
|
||||
)
|
||||
|
||||
|
||||
# Used when querying info on Apple API
|
||||
# for iOS App
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
from app.config import (
|
||||
ALIAS_DOMAINS,
|
||||
PREMIUM_ALIAS_DOMAINS,
|
||||
get_abs_path,
|
||||
DISPOSABLE_FILE_PATH,
|
||||
)
|
||||
from app.db import Session
|
||||
from app.log import LOG
|
||||
|
@ -55,8 +53,8 @@ def add_sl_domains():
|
|||
Session.commit()
|
||||
|
||||
|
||||
def add_invalid_mailbox_domains():
|
||||
with open(get_abs_path(DISPOSABLE_FILE_PATH), "r") as f:
|
||||
def add_invalid_mailbox_domains(disposable_domains_file_path):
|
||||
with open(disposable_domains_file_path, "r") as f:
|
||||
disposable_email_domains = f.readlines()
|
||||
disposable_email_domains = [d.strip().lower() for d in disposable_email_domains]
|
||||
disposable_email_domains = [
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
10minutesmail.fr
|
||||
temp-mail.com
|
||||
# protonmail.com
|
Loading…
Reference in New Issue