From 8d98726fc0aa73ab8ab17822b4331e91162f722f Mon Sep 17 00:00:00 2001 From: Jim Popovitch Date: Tue, 11 Oct 2016 15:26:21 +0000 Subject: Further changes to keep domains aligned with virtual list notification emails --- Mailman/Handlers/Moderate.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Mailman/Handlers') 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.')), -- cgit v1.2.3