Skip to content
Snippets Groups Projects
Commit 6fbd7179 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

Allow excluding users from final list

parent fd98f050
No related branches found
No related tags found
No related merge requests found
Pipeline #3886 passed
......@@ -34,7 +34,12 @@ def main():
for d in config["domains"]:
# set to make unique, list to make sortable
output[d] = list(
{a.localpart for a in addresses if a.domain is None or a.domain == d}
{
a.localpart
for a in addresses
if (a.domain is None or a.domain == d)
and a.localpart not in config["exclude"]
}
)
output[d].sort()
......
......@@ -5,6 +5,10 @@
"sub.example.com",
"example.org"
],
"exclude": [
"nobody",
"testuser"
],
"sources": [
{
"type": "aliases",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment