summaryrefslogtreecommitdiff
path: root/Mailman/Message.py
diff options
context:
space:
mode:
authorBarry Warsaw2007-09-16 07:15:53 -0400
committerBarry Warsaw2007-09-16 07:15:53 -0400
commit0a3e802568a0bfaf9ceade4614a52db9a90b905c (patch)
tree844fdd4288578727c9ba85030b899fdb3c68c685 /Mailman/Message.py
parent7fefa8a8f477a88c73fee417143afcf809b530b4 (diff)
downloadmailman-0a3e802568a0bfaf9ceade4614a52db9a90b905c.tar.gz
mailman-0a3e802568a0bfaf9ceade4614a52db9a90b905c.tar.zst
mailman-0a3e802568a0bfaf9ceade4614a52db9a90b905c.zip
Diffstat (limited to 'Mailman/Message.py')
-rw-r--r--Mailman/Message.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/Mailman/Message.py b/Mailman/Message.py
index 5214d3caa..47262d8a3 100644
--- a/Mailman/Message.py
+++ b/Mailman/Message.py
@@ -263,15 +263,17 @@ class OwnerNotification(UserNotification):
"""Like user notifications, but this message goes to the list owners."""
def __init__(self, mlist, subject=None, text=None, tomoderators=True):
- recips = mlist.owner[:]
if tomoderators:
- recips.extend(mlist.moderator)
+ roster = mlist.moderators
+ else:
+ roster = mlist.owners
+ recips = [address.address for address in roster.addresses]
sender = config.SITE_OWNER_ADDRESS
lang = mlist.preferred_language
UserNotification.__init__(self, recips, sender, subject, text, lang)
# Hack the To header to look like it's going to the -owner address
del self['to']
- self['To'] = mlist.GetOwnerEmail()
+ self['To'] = mlist.owner_address
self._sender = sender
def _enqueue(self, mlist, **_kws):