summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2000-11-16 04:35:09 +0000
committerbwarsaw2000-11-16 04:35:09 +0000
commitd76aacf5d5c0910417fb37956deb0cfb1ec2464a (patch)
treeb5ae53f86156084b874a91444a472861d03913ca
parent455580603cb2e20a8272687c50e3c3e0e02cdacc (diff)
downloadmailman-d76aacf5d5c0910417fb37956deb0cfb1ec2464a.tar.gz
mailman-d76aacf5d5c0910417fb37956deb0cfb1ec2464a.tar.zst
mailman-d76aacf5d5c0910417fb37956deb0cfb1ec2464a.zip
-rw-r--r--Mailman/Handlers/CookHeaders.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/Mailman/Handlers/CookHeaders.py b/Mailman/Handlers/CookHeaders.py
index fb544a4dc..8bd66fbcd 100644
--- a/Mailman/Handlers/CookHeaders.py
+++ b/Mailman/Handlers/CookHeaders.py
@@ -76,17 +76,22 @@ def process(mlist, msg, msgdata):
msg['Precedence'] = 'bulk'
#
# Reply-To: munging. Do not do this if the message is "fast tracked",
- # meaning it is internally crafted and delivered to a specific user,
- # or if there is already a reply-to set. If the user has set
- # one we assume they have a good reason for it, and we don't
- # second guess them.
- if not fasttrack and not msg.get('reply-to'):
+ # meaning it is internally crafted and delivered to a specific user.
+ # Yuck, I hate this feature but enough people want it that we should
+ # support it as an option.
+ if not fasttrack:
+ xreplyto = None
# Set Reply-To: header to point back to this list
if mlist.reply_goes_to_list == 1:
+ xreplyto = msg.get('reply-to')
msg['Reply-To'] = mlist.GetListEmail()
# Set Reply-To: an explicit address
elif mlist.reply_goes_to_list == 2:
+ xreplyto = msg.get('reply-to')
msg['Reply-To'] = mlist.reply_to_address
+ # Give the recipient some ability to un-munge things.
+ if xreplyto:
+ msg['X-Reply-To'] = xreplyto
#
# Add list-specific headers as defined in RFC 2369, but only if the
# message is being crafted for a specific list (e.g. not for the password