aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Handlers/Cleanse.py
diff options
context:
space:
mode:
authorYasuhito FUTATSUKI at POEM <futatuki@poem.co.jp>2016-02-18 18:32:15 +0900
committerYasuhito FUTATSUKI at POEM <futatuki@poem.co.jp>2016-02-18 18:32:15 +0900
commitbcc413de55d2f56e4a5872b610637787539d928d (patch)
treeebc77ed11f19ebc8e4ad9b2b53c5c77359577f6f /Mailman/Handlers/Cleanse.py
parent46bd46376268f9657f20af251406a14eb0443aba (diff)
parent9eecc5d5d26373741ba5dfc03872098c3a6e602c (diff)
downloadmailman2-bcc413de55d2f56e4a5872b610637787539d928d.tar.gz
mailman2-bcc413de55d2f56e4a5872b610637787539d928d.tar.xz
mailman2-bcc413de55d2f56e4a5872b610637787539d928d.zip
Merge lp:mailman/2.1 rev 1617
Diffstat (limited to 'Mailman/Handlers/Cleanse.py')
-rw-r--r--Mailman/Handlers/Cleanse.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Mailman/Handlers/Cleanse.py b/Mailman/Handlers/Cleanse.py
index c684cd19..5270bb5a 100644
--- a/Mailman/Handlers/Cleanse.py
+++ b/Mailman/Handlers/Cleanse.py
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2015 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2016 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -60,6 +60,9 @@ def process(mlist, msg, msgdata):
del msg['x-approve']
# Also remove this header since it can contain a password
del msg['urgent']
+ # If we're anonymizing, we need to save the sender here, and we may as
+ # well do it for all.
+ msgdata['original_sender'] = msg.get_sender()
# We remove other headers from anonymous lists
if mlist.anonymous_list:
syslog('post', 'post to %s from %s anonymized',