summaryrefslogtreecommitdiff
path: root/Mailman/Cgi/create.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/Cgi/create.py')
-rw-r--r--Mailman/Cgi/create.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/Mailman/Cgi/create.py b/Mailman/Cgi/create.py
index be695173d..0225b67d2 100644
--- a/Mailman/Cgi/create.py
+++ b/Mailman/Cgi/create.py
@@ -175,7 +175,9 @@ def process_request(doc, cgidata):
__import__(modname)
sys.modules[modname].create(mlist)
- # And send the notice to the list owner
+ # And send the notice to the list owner. BAW: Note that we might be
+ # setting the wrong From: address. There should probably be a
+ # per-list or per domain MAILMAN_OWNER.
if notify:
text = Utils.maketext(
'newlist.txt',
@@ -184,11 +186,10 @@ def process_request(doc, cgidata):
'admin_url' : mlist.GetScriptURL('admin', absolute=1),
'listinfo_url': mlist.GetScriptURL('listinfo', absolute=1),
'requestaddr' : "%s-request@%s" % (listname, mlist.host_name),
- 'hostname' : mlist.host_name,
- }, mlist.preferred_language)
+ 'owner' : mm_cfg.MAILMAN_OWNER,
+ }, mlist=mlist)
msg = Message.UserNotification(
- owner,
- 'mailman-owner@' + mlist.host_name,
+ owner, mm_cfg.MAILMAN_OWNER,
_('Your new mailing list: %(listname)s'),
text)
msg.send(mlist)