summaryrefslogtreecommitdiff
path: root/Mailman/Utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/Utils.py')
-rw-r--r--Mailman/Utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py
index fff5bd192..0816599fa 100644
--- a/Mailman/Utils.py
+++ b/Mailman/Utils.py
@@ -634,6 +634,12 @@ def get_domain():
return mm_cfg.DEFAULT_HOST_NAME
+def get_site_email(hostname=None, extra=''):
+ if hostname is None:
+ hostname = get_domain()
+ return '%s%s@%s' % (mm_cfg.MAILMAN_SITE_LIST, extra, hostname)
+
+
# This algorithm crafts a guaranteed unique message-id. The theory here is
# that pid+listname+host will distinguish the message-id for every process on