diff options
author | Mark Sapiro <mark@msapiro.net> | 2013-09-27 16:33:35 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2013-09-27 16:33:35 -0700 |
commit | 5391cce1af71723b92bafc2419cec962f1e3ece3 (patch) | |
tree | e163c24a980fe14a202750c1a941c21700e0e346 /Mailman/Handlers/Cleanse.py | |
parent | dbddbe175aeeacc668d1c78e1619528c7e828f6d (diff) | |
download | mailman2-5391cce1af71723b92bafc2419cec962f1e3ece3.tar.gz mailman2-5391cce1af71723b92bafc2419cec962f1e3ece3.tar.xz mailman2-5391cce1af71723b92bafc2419cec962f1e3ece3.zip |
Made author_is_list a 3-way with an option to wrap the message.
Diffstat (limited to 'Mailman/Handlers/Cleanse.py')
-rw-r--r-- | Mailman/Handlers/Cleanse.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Mailman/Handlers/Cleanse.py b/Mailman/Handlers/Cleanse.py index c1b500e5..9e9dba15 100644 --- a/Mailman/Handlers/Cleanse.py +++ b/Mailman/Handlers/Cleanse.py @@ -39,26 +39,6 @@ def process(mlist, msg, msgdata): del msg['x-approve'] # Also remove this header since it can contain a password del msg['urgent'] - # Do we change the from so the list takes ownership of the email - # This really belongs in CookHeaders. - if mm_cfg.ALLOW_AUTHOR_IS_LIST and mlist.author_is_list: - realname, email = parseaddr(msg['from']) - replies = getaddresses(msg.get('reply-to', '')) - reply_addrs = [x[1].lower() for x in replies] - if reply_addrs: - if email.lower() not in reply_addrs: - rt = msg['reply-to'] + ', ' + msg['from'] - else: - rt = msg['reply-to'] - else: - rt = msg['from'] - del msg['reply-to'] - msg['Reply-To'] = rt - del msg['from'] - msg['From'] = formataddr(('%s via %s' % (realname, mlist.real_name), - mlist.GetListEmail())) - del msg['sender'] - #MAS mlist.include_sender_header = 0 # We remove other headers from anonymous lists if mlist.anonymous_list: syslog('post', 'post to %s from %s anonymized', |