diff --git a/apps/api/src/routers/admin.py b/apps/api/src/routers/admin.py index 0c47cb24..916fbe18 100644 --- a/apps/api/src/routers/admin.py +++ b/apps/api/src/routers/admin.py @@ -155,8 +155,9 @@ def _extract_personalizations(decision_data: dict[str, Any]) -> tuple[str, Email def _recover_email_from_uid(uid: str) -> str: """For NativeUsers, the email should still delivery properly.""" + uid = uid.replace("..", "\n") *reversed_domain, local = uid.split(".") - local = local.replace("..", ".") + local = local.replace("\n", ".") domain = ".".join(reversed(reversed_domain)) return f"{local}@{domain}"