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