aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Bouncer.py
diff options
context:
space:
mode:
authorJim Popovitch <jimpop@gmail.com>2016-10-10 21:47:57 +0000
committerJim Popovitch <jimpop@gmail.com>2016-10-10 21:47:57 +0000
commitfc432afa375f34b935ab692619c1ba8bfb0e191a (patch)
tree9c399f7d02f38c0309cfb3cf7a2e08ced4d9cc9d /Mailman/Bouncer.py
parent962c9d48558a3545fa2e319fa3033ba3aaead2ec (diff)
downloadmailman2-fc432afa375f34b935ab692619c1ba8bfb0e191a.tar.gz
mailman2-fc432afa375f34b935ab692619c1ba8bfb0e191a.tar.xz
mailman2-fc432afa375f34b935ab692619c1ba8bfb0e191a.zip
Replaced UserNotification() with OwnerNotification() in two places,
removed envsender override when processing owner emails (envsender was coded to use site-email, but to pass DMARC we need it to use the virtual domain)
Diffstat (limited to 'Mailman/Bouncer.py')
-rw-r--r--Mailman/Bouncer.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Mailman/Bouncer.py b/Mailman/Bouncer.py
index 47955fa3..573b46e4 100644
--- a/Mailman/Bouncer.py
+++ b/Mailman/Bouncer.py
@@ -224,7 +224,6 @@ class Bouncer:
# it was of dubious value). However, we'll provide empty, strange, or
# meaningless strings for the unused %()s fields so that the language
# translators don't have to provide new templates.
- owneraddr = self.GetOwnerEmail()
text = Utils.maketext(
'bounce.txt',
{'listname' : self.real_name,
@@ -233,11 +232,10 @@ class Bouncer:
'did' : _('disabled'),
'but' : '',
'reenable' : '',
- 'owneraddr': owneraddr,
+ 'owneraddr': self.GetOwnerEmail(),
}, mlist=self)
subject = _('Bounce action notification')
- umsg = Message.UserNotification(owneraddr, owneraddr, subject,
- lang=self.preferred_language)
+ umsg = Message.OwnerNotification(self, subject, tomoderators=0)
# BAW: Be sure you set the type before trying to attach, or you'll get
# a MultipartConversionError.
umsg.set_type('multipart/mixed')