summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhmeland2000-02-08 10:24:54 +0000
committerhmeland2000-02-08 10:24:54 +0000
commitb4366daf601d483032c5fec65cc1e89ef8690b69 (patch)
tree55f50d75258e4406e35f18f7bea835a5f4dfc39b
parent9472a54f3553c2e2d46140a0fd4e658b7cee6fc0 (diff)
downloadmailman-b4366daf601d483032c5fec65cc1e89ef8690b69.tar.gz
mailman-b4366daf601d483032c5fec65cc1e89ef8690b69.tar.zst
mailman-b4366daf601d483032c5fec65cc1e89ef8690b69.zip
* X-BeenThere: headers were being overwritten every time they reached
a new mailing list -- changed to append a new header per list (so that multi-list loops can be detected). * Set Reply-To: header to point back to list, if mlist.reply_goes_to_list is true and msg.fastrack is false/unset.
-rw-r--r--Mailman/Handlers/CookHeaders.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Mailman/Handlers/CookHeaders.py b/Mailman/Handlers/CookHeaders.py
index 5efa26d61..4349c1004 100644
--- a/Mailman/Handlers/CookHeaders.py
+++ b/Mailman/Handlers/CookHeaders.py
@@ -51,7 +51,7 @@ def process(mlist, msg):
msg['Errors-To'] = adminaddr
#
# Mark message so we know we've been here
- msg['X-BeenThere'] = mlist.GetListEmail()
+ msg.headers.append('X-BeenThere: %s\n' % mlist.GetListEmail())
#
# Add Precedence: and other useful headers. None of these are standard
# and finding information on some of them are fairly difficult. Some are
@@ -68,6 +68,11 @@ def process(mlist, msg):
if not msg.get('precedence'):
msg['Precedence'] = 'bulk'
#
+ # Set Reply-To: header to point back to list, if the list is so
+ # inclined.
+ if mlist.reply_goes_to_list and not getattr(msg, 'fastrack', 0):
+ msg['reply-to'] = 'Reply-To: %s\n' % mlist.GetListEmail()
+ #
# Other list related non-standard headers. Defined in:
#
# Grant Neufeld and Joshua D. Baer: The Use of URLs as Meta-Syntax for