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 29bc326 list id should include <> before being run through AAA
29bc326 is described below
commit 29bc3268f05a2a6ab18f5ca277a828fd6a8d7445
Author: Daniel Gruno <[email protected]>
AuthorDate: Mon Sep 6 22:10:46 2021 -0500
list id should include <> before being run through AAA
---
server/plugins/messages.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/plugins/messages.py b/server/plugins/messages.py
index 09b3911..c89aeed 100644
--- a/server/plugins/messages.py
+++ b/server/plugins/messages.py
@@ -386,7 +386,7 @@ async def get_list_stats(session, maxage="90d",
admin=False):
for entry in res["aggregations"]["listnames"]["buckets"]:
# Normalize list name
- listname = entry["key"].lower().strip("<>")
+ listname = entry["key"].lower()
# Check access
if (
@@ -395,7 +395,7 @@ async def get_list_stats(session, maxage="90d",
admin=False):
or plugins.aaa.can_access_list(session, listname)
):
# Change foo.bar.baz to [email protected]
- listname = listname.replace(".", "@", 1)
+ listname = listname.strip("<>").replace(".", "@", 1)
lists[listname] = entry["doc_count"]
return lists