aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Handlers/CookHeaders.py
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2016-02-17 10:43:31 -0800
committerMark Sapiro <mark@msapiro.net>2016-02-17 10:43:31 -0800
commit9eecc5d5d26373741ba5dfc03872098c3a6e602c (patch)
treeaf7f879748b5a0978dad9359b3f8eb6af0a09151 /Mailman/Handlers/CookHeaders.py
parent91f070fe878cb1e3c9fc55a9373258a976d19be5 (diff)
downloadmailman2-9eecc5d5d26373741ba5dfc03872098c3a6e602c.tar.gz
mailman2-9eecc5d5d26373741ba5dfc03872098c3a6e602c.tar.xz
mailman2-9eecc5d5d26373741ba5dfc03872098c3a6e602c.zip
Acknowledge option will now be honored for posts to anonymous lists
Diffstat (limited to '')
-rwxr-xr-xMailman/Handlers/CookHeaders.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Mailman/Handlers/CookHeaders.py b/Mailman/Handlers/CookHeaders.py
index 8b371b77..59eb67b7 100755
--- a/Mailman/Handlers/CookHeaders.py
+++ b/Mailman/Handlers/CookHeaders.py
@@ -98,7 +98,9 @@ def process(mlist, msg, msgdata):
# message, we want to save some of the information in the msgdata
# dictionary for later. Specifically, the sender header will get waxed,
# but we need it for the Acknowledge module later.
- msgdata['original_sender'] = msg.get_sender()
+ # We may have already saved it; if so, don't clobber it here.
+ if 'original_sender' not in msgdata:
+ msgdata['original_sender'] = msg.get_sender()
# VirginRunner sets _fasttrack for internally crafted messages.
fasttrack = msgdata.get('_fasttrack')
if not msgdata.get('isdigest') and not fasttrack: