From ab12d8e130635890926fb7d07752dcea7e4282d5 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Sat, 4 Aug 2001 02:02:25 +0000 Subject: process_request(): Instead of using MAILMAN_OWNER, use Utils.get_site_email(). The former config variable is going away. --- Mailman/Cgi/create.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Mailman/Cgi/create.py b/Mailman/Cgi/create.py index 0089ad4f8..32f67551a 100644 --- a/Mailman/Cgi/create.py +++ b/Mailman/Cgi/create.py @@ -178,21 +178,20 @@ def process_request(doc, cgidata): __import__(modname) sys.modules[modname].create(mlist, cgi=1) - # 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. + # And send the notice to the list owner. if notify: + siteadmin = Utils.get_site_email(mlist.host_name, '-admin') text = Utils.maketext( 'newlist.txt', {'listname' : listname, 'password' : password, 'admin_url' : mlist.GetScriptURL('admin', absolute=1), 'listinfo_url': mlist.GetScriptURL('listinfo', absolute=1), - 'requestaddr' : "%s-request@%s" % (listname, mlist.host_name), - 'owner' : mm_cfg.MAILMAN_OWNER, + 'requestaddr' : mlist.GetRequestEmail(), + 'siteowner' : siteadmin, }, mlist=mlist) msg = Message.UserNotification( - owner, mm_cfg.MAILMAN_OWNER, + owner, siteadmin, _('Your new mailing list: %(listname)s'), text) msg.send(mlist) -- cgit v1.3.1