You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2022/09/01 13:48:44 UTC
[incubator-ponymail-foal] branch master updated: Accept both foo@bar.baz and foo.bar.baz here
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
The following commit(s) were added to refs/heads/master by this push:
new 7b8cb11 Accept both foo@bar.baz and foo.bar.baz here
7b8cb11 is described below
commit 7b8cb11103a348250ca5ea6670ae0d9047e33cd1
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Thu Sep 1 08:48:40 2022 -0500
Accept both foo@bar.baz and foo.bar.baz here
---
server/endpoints/mgmt.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/endpoints/mgmt.py b/server/endpoints/mgmt.py
index 244e6c5..3f37972 100644
--- a/server/endpoints/mgmt.py
+++ b/server/endpoints/mgmt.py
@@ -168,7 +168,7 @@ async def process(
# extra list validation
if new_list:
- new_forum = new_list.strip("<>").replace(".", "@", 1)
+ new_forum = new_list.strip("<>").replace("@", ".").replace(".", "@", 1)
if not new_forum in server.data.lists:
return user_error(f"New list id: '{new_forum}' is not an existing list")