------------------------------------------------------------ revno: 1455 committer: Mark Sapiro <m...@msapiro.net> branch nick: 2.1 timestamp: Tue 2014-04-08 19:15:59 -0700 message: Enhanced fix for LP: #1304511 to use member's real name if available. modified: Mailman/Handlers/CookHeaders.py
-- 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/CookHeaders.py' --- Mailman/Handlers/CookHeaders.py 2014-04-08 16:28:26 +0000 +++ Mailman/Handlers/CookHeaders.py 2014-04-09 02:15:59 +0000 @@ -122,7 +122,10 @@ if mm_cfg.ALLOW_FROM_IS_LIST and mlist.from_is_list and not fasttrack: realname, email = parseaddr(msg['from']) if not realname: - realname = email + if mlist.isMember(email): + realname = mlist.getMemberName(email) or email + else: + realname = email # Remove domain from realname if it looks like an email address realname = re.sub(r'@([^ .]+\.)+[^ .]+$', '---', realname) replies = getaddresses(msg.get('reply-to', ''))
_______________________________________________ Mailman-checkins mailing list Mailman-checkins@python.org Unsubscribe: https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org