diff options
Diffstat (limited to 'Mailman/Message.py')
| -rw-r--r-- | Mailman/Message.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Mailman/Message.py b/Mailman/Message.py index 147ac073d..acad25680 100644 --- a/Mailman/Message.py +++ b/Mailman/Message.py @@ -259,13 +259,11 @@ class UserNotification(Message): class OwnerNotification(UserNotification): """Like user notifications, but this message goes to the list owners.""" - def __init__(self, mlist, subject=None, text=None, tomoderators=1): + def __init__(self, mlist, subject=None, text=None, tomoderators=True): recips = mlist.owner[:] if tomoderators: recips.extend(mlist.moderator) - # We have to set the owner to the site's -bounces address, otherwise - # we'll get a mail loop if an owner's address bounces. - sender = Utils.get_site_email(mlist.host_name, 'bounces') + 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 |
