aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/MTA
diff options
context:
space:
mode:
authorJim Popovitch <jimpop@gmail.com>2016-10-11 15:26:21 +0000
committerJim Popovitch <jimpop@gmail.com>2016-10-11 15:26:21 +0000
commit8d98726fc0aa73ab8ab17822b4331e91162f722f (patch)
tree3cb74ad8d52f64d10ab90884e35527c7bbe43d27 /Mailman/MTA
parent2fa8a893c410648ee86d28d379f717f2a83d0fd1 (diff)
downloadmailman2-8d98726fc0aa73ab8ab17822b4331e91162f722f.tar.gz
mailman2-8d98726fc0aa73ab8ab17822b4331e91162f722f.tar.xz
mailman2-8d98726fc0aa73ab8ab17822b4331e91162f722f.zip
Further changes to keep domains aligned with virtual list notification emails
Diffstat (limited to 'Mailman/MTA')
-rw-r--r--Mailman/MTA/Manual.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/Mailman/MTA/Manual.py b/Mailman/MTA/Manual.py
index 92e1c03c..46adfae2 100644
--- a/Mailman/MTA/Manual.py
+++ b/Mailman/MTA/Manual.py
@@ -94,10 +94,9 @@ equivalent) file by adding the following lines, and possibly running the
# this request.
siteowner = Utils.get_site_email(extra='owner')
# Should this be sent in the site list's preferred language?
- msg = Message.UserNotification(
- siteowner, siteowner,
+ msg = Message.OwnerNotification(mlist,
_('Mailing list creation request for list %(listname)s'),
- sfp.getvalue(), mm_cfg.DEFAULT_SERVER_LANGUAGE)
+ sfp.getvalue())
msg.send(mlist)
@@ -135,12 +134,9 @@ equivalent) file by removing the following lines, and possibly running the
if not cgi:
print >> outfp
return
- siteowner = Utils.get_site_email(extra='owner')
- # Should this be sent in the site list's preferred language?
- msg = Message.UserNotification(
- siteowner, siteowner,
+ msg = Message.OwnerNotification(mlist,
_('Mailing list removal request for list %(listname)s'),
- sfp.getvalue(), mm_cfg.DEFAULT_SERVER_LANGUAGE)
+ sfp.getvalue())
msg['Date'] = email.Utils.formatdate(localtime=1)
outq = get_switchboard(mm_cfg.OUTQUEUE_DIR)
outq.enqueue(msg, recips=[siteowner], nodecorate=1)