summaryrefslogtreecommitdiff
path: root/Mailman/Commands/cmd_lists.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/Commands/cmd_lists.py')
-rw-r--r--Mailman/Commands/cmd_lists.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Mailman/Commands/cmd_lists.py b/Mailman/Commands/cmd_lists.py
index 0708df2a0..81b60e604 100644
--- a/Mailman/Commands/cmd_lists.py
+++ b/Mailman/Commands/cmd_lists.py
@@ -19,6 +19,7 @@
See a list of the public mailing lists on this GNU Mailman server.
"""
+from Mailman import mm_cfg
from Mailman import Utils
from Mailman.MailList import MailList
from Mailman.i18n import _
@@ -52,6 +53,11 @@ def process(res, args):
# We can mention this list if you already know about it
if not xlist.advertised and xlist is not mlist:
continue
+ # Skip the list if it isn't in the same virtual domain. BAW: should a
+ # message to the site list include everything regardless of domain?
+ if mm_cfg.VIRTUAL_HOST_OVERVIEW and \
+ xlist.host_name <> mlist.host_name:
+ continue
realname = xlist.real_name
description = xlist.description or _('n/a')
requestaddr = xlist.GetRequestEmail()