diff options
| author | bwarsaw | 2001-08-04 02:00:31 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-08-04 02:00:31 +0000 |
| commit | 989dbf14c23e74926fdf9e0be213f1ae9e5dce54 (patch) | |
| tree | ad5c9fd01e794fcc92c8c776913ed89c59290dee /Mailman/Utils.py | |
| parent | 054f1790a0ae0ca45318d044f83de87677a9fdd9 (diff) | |
| download | mailman-989dbf14c23e74926fdf9e0be213f1ae9e5dce54.tar.gz mailman-989dbf14c23e74926fdf9e0be213f1ae9e5dce54.tar.zst mailman-989dbf14c23e74926fdf9e0be213f1ae9e5dce54.zip | |
Diffstat (limited to 'Mailman/Utils.py')
| -rw-r--r-- | Mailman/Utils.py | 6 |
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 |
