diff options
author | Mark Sapiro <mark@msapiro.net> | 2015-01-04 19:03:40 -0800 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2015-01-04 19:03:40 -0800 |
commit | c170b01eae9958bc6d0892e8227d2726f60362b7 (patch) | |
tree | c4d0c4d1ea94649f40a993909ad5f85d1fe091c6 /Mailman/Handlers/CookHeaders.py | |
parent | 85a6679a3ea5b1ff085453f4e1ed921b5320690b (diff) | |
download | mailman2-c170b01eae9958bc6d0892e8227d2726f60362b7.tar.gz mailman2-c170b01eae9958bc6d0892e8227d2726f60362b7.tar.xz mailman2-c170b01eae9958bc6d0892e8227d2726f60362b7.zip |
Add some explanitory comments for why we defer some Munge From changes
to WrapMessage.
Correct a misplaced item in NEWS.
Diffstat (limited to 'Mailman/Handlers/CookHeaders.py')
-rwxr-xr-x | Mailman/Handlers/CookHeaders.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Mailman/Handlers/CookHeaders.py b/Mailman/Handlers/CookHeaders.py index 0139f3c3..30e05655 100755 --- a/Mailman/Handlers/CookHeaders.py +++ b/Mailman/Handlers/CookHeaders.py @@ -72,6 +72,11 @@ def change_header(name, value, mlist, msg, msgdata, delete=True, repl=True): (msgdata.get('from_is_list') == 0 and mlist.from_is_list == 2)) and not msgdata.get('_fasttrack') ) or name.lower() in ('from', 'reply-to', 'cc'): + # The or name.lower() in ... above is because when we are munging + # the From:, we want to defer the resultant changes to From:, + # Reply-To:, and/or Cc: until after the message passes through + # ToDigest, ToArchive and ToUsenet. Thus, we put them in + # msgdata[add_header] here and apply them in WrapMessage. msgdata.setdefault('add_header', {})[name] = value elif repl or not msg.has_key(name): if delete: |