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/ListAdmin.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'Mailman/ListAdmin.py') diff --git a/Mailman/ListAdmin.py b/Mailman/ListAdmin.py index af579331..13502352 100755 --- a/Mailman/ListAdmin.py +++ b/Mailman/ListAdmin.py @@ -403,10 +403,8 @@ class ListAdmin: }, mlist=self) # This message should appear to come from the -owner so as # to avoid any useless bounce processing. - owneraddr = self.GetOwnerEmail() - msg = Message.UserNotification(owneraddr, owneraddr, subject, text, - self.preferred_language) - msg.send(self, **{'tomoderators': 1}) + msg = Message.OwnerNotification(self, subject, text=text, + tomoderators=1) # Restore the user's preferred language. i18n.set_language(lang) @@ -460,10 +458,8 @@ class ListAdmin: }, mlist=self) # This message should appear to come from the -owner so as # to avoid any useless bounce processing. - owneraddr = self.GetOwnerEmail() - msg = Message.UserNotification(owneraddr, owneraddr, subject, text, - self.preferred_language) - msg.send(self, **{'tomoderators': 1}) + msg = Message.OwnerNotification(self, subject, text=text, + tomoderators=1) def __handleunsubscription(self, record, value, comment): addr = record -- cgit v1.2.3