summaryrefslogtreecommitdiff
path: root/Mailman/Handlers/CookHeaders.py
diff options
context:
space:
mode:
authorbwarsaw2001-11-20 16:32:26 +0000
committerbwarsaw2001-11-20 16:32:26 +0000
commit12cfa335f9f02726ed0ba10dffc4df0d3e79038c (patch)
treedd2b3557ffcc243e4171a7cb3fda904a0086bc1c /Mailman/Handlers/CookHeaders.py
parent68cdcc071b516d009ab06637d573849e6438d030 (diff)
downloadmailman-12cfa335f9f02726ed0ba10dffc4df0d3e79038c.tar.gz
mailman-12cfa335f9f02726ed0ba10dffc4df0d3e79038c.tar.zst
mailman-12cfa335f9f02726ed0ba10dffc4df0d3e79038c.zip
Diffstat (limited to 'Mailman/Handlers/CookHeaders.py')
-rw-r--r--Mailman/Handlers/CookHeaders.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/Handlers/CookHeaders.py b/Mailman/Handlers/CookHeaders.py
index 831999b82..5a7c41939 100644
--- a/Mailman/Handlers/CookHeaders.py
+++ b/Mailman/Handlers/CookHeaders.py
@@ -43,7 +43,7 @@ def process(mlist, msg, msgdata):
# but we need it for the Acknowledge module later.
msgdata['original_sender'] = msg.get_sender()
subject = msg['subject']
- adminaddr = mlist.GetAdminEmail()
+ bounceaddr = mlist.getListAddress('bounces')
# VirginRunner sets _fasttrack for internally crafted messages.
fasttrack = msgdata.get('_fasttrack')
if not msgdata.get('isdigest') and not fasttrack:
@@ -62,8 +62,8 @@ def process(mlist, msg, msgdata):
# get rid of duplicate headers
del msg['sender']
del msg['errors-to']
- msg['Sender'] = msgdata.get('errorsto', adminaddr)
- msg['Errors-To'] = msgdata.get('errorsto', adminaddr)
+ msg['Sender'] = msgdata.get('errorsto', bounceaddr)
+ msg['Errors-To'] = msgdata.get('errorsto', bounceaddr)
# Mark message so we know we've been here, but leave any existing
# X-BeenThere's intact.
msg['X-BeenThere'] = mlist.GetListEmail()