diff options
| author | bwarsaw | 2001-08-04 02:02:25 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-08-04 02:02:25 +0000 |
| commit | ab12d8e130635890926fb7d07752dcea7e4282d5 (patch) | |
| tree | 63dce36023bafdbcf49d93a527605d4ebcdbc198 | |
| parent | aba5c0f5c86ff12bbfd70c6c86d872afe2bf0e63 (diff) | |
| download | mailman-ab12d8e130635890926fb7d07752dcea7e4282d5.tar.gz mailman-ab12d8e130635890926fb7d07752dcea7e4282d5.tar.zst mailman-ab12d8e130635890926fb7d07752dcea7e4282d5.zip | |
| -rw-r--r-- | Mailman/Cgi/create.py | 11 |
1 files 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) |
