aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Handlers
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/Handlers
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/Handlers')
-rw-r--r--Mailman/Handlers/Moderate.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Mailman/Handlers/Moderate.py b/Mailman/Handlers/Moderate.py
index 199c97ac..f9e79cbe 100644
--- a/Mailman/Handlers/Moderate.py
+++ b/Mailman/Handlers/Moderate.py
@@ -174,10 +174,9 @@ def do_discard(mlist, msg):
lang = mlist.preferred_language
varhelp = '%s/?VARHELP=privacy/sender/discard_these_nonmembers' % \
mlist.GetScriptURL('admin', absolute=1)
- nmsg = Message.UserNotification(mlist.GetOwnerEmail(),
- mlist.GetBouncesEmail(),
+ nmsg = Message.OwnerNotification(mlist,
_('Auto-discard notification'),
- lang=lang)
+ lang=lang, tomoderators=0)
nmsg.set_type('multipart/mixed')
text = MIMEText(Utils.wrap(_(
'The attached message has been automatically discarded.')),