From 421c121d592bb143678b4f4029fd03557cde0dc3 Mon Sep 17 00:00:00 2001 From: Son Date: Tue, 19 Oct 2021 14:03:51 +0200 Subject: [PATCH] black --- app/email_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/email_utils.py b/app/email_utils.py index 8d929afe..a6797b57 100644 --- a/app/email_utils.py +++ b/app/email_utils.py @@ -1033,7 +1033,9 @@ def generate_reply_email(contact_email: str, user: User) -> str: def is_reverse_alias(address: str) -> bool: - return address.endswith(f"@{EMAIL_DOMAIN}") and (address.startswith("reply+") or address.startswith("ra+")) + return address.endswith(f"@{EMAIL_DOMAIN}") and ( + address.startswith("reply+") or address.startswith("ra+") + ) # allow also + and @ that are present in a reply address