diff options
author | Jim Popovitch <jimpop@gmail.com> | 2016-10-10 21:47:57 +0000 |
---|---|---|
committer | Jim Popovitch <jimpop@gmail.com> | 2016-10-10 21:47:57 +0000 |
commit | fc432afa375f34b935ab692619c1ba8bfb0e191a (patch) | |
tree | 9c399f7d02f38c0309cfb3cf7a2e08ced4d9cc9d /Mailman/Handlers/Hold.py | |
parent | 962c9d48558a3545fa2e319fa3033ba3aaead2ec (diff) | |
download | mailman2-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/Handlers/Hold.py')
-rw-r--r-- | Mailman/Handlers/Hold.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Mailman/Handlers/Hold.py b/Mailman/Handlers/Hold.py index 5452d06a..d0d22690 100644 --- a/Mailman/Handlers/Hold.py +++ b/Mailman/Handlers/Hold.py @@ -264,8 +264,7 @@ def hold_for_approval(mlist, msg, msgdata, exc): d['subject'] = usersubject # craft the admin notification message and deliver it subject = _('%(listname)s post from %(sender)s requires approval') - nmsg = Message.UserNotification(owneraddr, owneraddr, subject, - lang=lang) + nmsg = Message.OwnerNotification(mlist, subject, tomoderators=1) nmsg.set_type('multipart/mixed') text = MIMEText( Utils.maketext('postauth.txt', d, raw=1, mlist=mlist), |