summaryrefslogtreecommitdiff
path: root/Mailman/Utils.py
diff options
context:
space:
mode:
authorbwarsaw2001-08-04 02:00:31 +0000
committerbwarsaw2001-08-04 02:00:31 +0000
commit989dbf14c23e74926fdf9e0be213f1ae9e5dce54 (patch)
treead5c9fd01e794fcc92c8c776913ed89c59290dee /Mailman/Utils.py
parent054f1790a0ae0ca45318d044f83de87677a9fdd9 (diff)
downloadmailman-989dbf14c23e74926fdf9e0be213f1ae9e5dce54.tar.gz
mailman-989dbf14c23e74926fdf9e0be213f1ae9e5dce54.tar.zst
mailman-989dbf14c23e74926fdf9e0be213f1ae9e5dce54.zip
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