From b61670fbc0adbbd291f84a26247bdc58e45c3b17 Mon Sep 17 00:00:00 2001 From: Son Date: Thu, 21 Apr 2022 09:26:44 +0200 Subject: [PATCH] remove unused import --- email_handler.py | 17 ++++++++--------- tests/test_email_handler.py | 2 +- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/email_handler.py b/email_handler.py index b3b54550..25be0ba1 100644 --- a/email_handler.py +++ b/email_handler.py @@ -86,17 +86,8 @@ from app.config import ( OLD_UNSUBSCRIBER, ALERT_FROM_ADDRESS_IS_REVERSE_ALIAS, ALERT_TO_NOREPLY, - NOREPLIES, ) from app.db import Session -from app.handler.dmarc import ( - apply_dmarc_policy_for_reply_phase, - apply_dmarc_policy_for_forward_phase, -) -from app.handler.spamd_result import ( - SpamdResult, - SPFCheckResult, -) from app.email import status, headers from app.email.rate_limit import rate_limited from app.email.spam import get_spam_score @@ -147,6 +138,14 @@ from app.errors import ( VERPReply, CannotCreateContactForReverseAlias, ) +from app.handler.dmarc import ( + apply_dmarc_policy_for_reply_phase, + apply_dmarc_policy_for_forward_phase, +) +from app.handler.spamd_result import ( + SpamdResult, + SPFCheckResult, +) from app.log import LOG, set_message_id from app.models import ( Alias, diff --git a/tests/test_email_handler.py b/tests/test_email_handler.py index 8b7a21cc..ab1877c8 100644 --- a/tests/test_email_handler.py +++ b/tests/test_email_handler.py @@ -7,7 +7,7 @@ from aiosmtpd.smtp import Envelope import email_handler from app import config -from app.config import EMAIL_DOMAIN, ALERT_DMARC_FAILED_REPLY_PHASE, NOREPLY +from app.config import EMAIL_DOMAIN, ALERT_DMARC_FAILED_REPLY_PHASE from app.db import Session from app.email import headers, status from app.email_utils import generate_verp_email