------------------------------------------------------------
revno: 1283
committer: Mark Sapiro <[email protected]>
branch nick: 2.1
timestamp: Mon 2011-03-21 13:27:19 -0700
message:
Added the list name as 'display-name' in added Sender: headers to help
mitigate Outlook et al 'on behalf of' displays. Bug #736849.
modified:
Mailman/Handlers/SMTPDirect.py
NEWS
--
lp:mailman/2.1
https://code.launchpad.net/~mailman-coders/mailman/2.1
Your team Mailman Checkins is subscribed to branch lp:mailman/2.1.
To unsubscribe from this branch go to
https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'Mailman/Handlers/SMTPDirect.py'
--- Mailman/Handlers/SMTPDirect.py 2010-07-03 20:59:22 +0000
+++ Mailman/Handlers/SMTPDirect.py 2011-03-21 20:27:19 +0000
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2010 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2011 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
@@ -363,7 +363,8 @@
# lists, depending on how often they accidentally reply to it. Also, when
# forwarding mail inline, the sender is replaced with the string "Full
# Name (on behalf [email protected])", essentially losing the original
- # sender address.
+ # sender address. To partially mitigate this, we add the list name as a
+ # display-name in the Sender: header that we add.
#
# The drawback of not touching the Sender: header is that some MTAs might
# still send bounces to it, so by not trapping it, we can miss bounces.
@@ -374,7 +375,7 @@
msg['Errors-To'] = envsender
if mlist.include_sender_header:
del msg['sender']
- msg['Sender'] = envsender
+ msg['Sender'] = '"%s" <%s>' % (mlist.real_name, envsender)
# Get the plain, flattened text of the message, sans unixfrom
# using our as_string() method to not mangle From_ and not fold
# sub-part headers possibly breaking signatures.
=== modified file 'NEWS'
--- NEWS 2011-02-19 01:33:50 +0000
+++ NEWS 2011-03-21 20:27:19 +0000
@@ -38,6 +38,9 @@
Bug Fixes and other patches
+ - Added the list name as 'display-name' in added Sender: headers to help
+ mitigate Outlook et al 'on behalf of' displays. Bug #736849.
+
- Fixed a typo in the usage() definition cron/gate_news. Bug #721015.
- Fixed an uncaught KeyError when poster tries to cancel a post which was
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org