------------------------------------------------------------ revno: 1454 fixes bug: https://launchpad.net/bugs/1304511 committer: Mark Sapiro <m...@msapiro.net> branch nick: 2.1 timestamp: Tue 2014-04-08 09:28:26 -0700 message: For from_is_list feature, use email address from original From: if original From: has no display name and strip domain part from resultant names that look like email addresses. (LP: #1304511) modified: Mailman/Handlers/CookHeaders.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/CookHeaders.py' --- Mailman/Handlers/CookHeaders.py 2014-04-06 17:58:17 +0000 +++ Mailman/Handlers/CookHeaders.py 2014-04-08 16:28:26 +0000 @@ -123,6 +123,8 @@ realname, email = parseaddr(msg['from']) if not realname: realname = email + # Remove domain from realname if it looks like an email address + realname = re.sub(r'@([^ .]+\.)+[^ .]+$', '---', realname) replies = getaddresses(msg.get('reply-to', '')) reply_addrs = [x[1].lower() for x in replies] if reply_addrs: === modified file 'NEWS' --- NEWS 2014-03-22 03:47:45 +0000 +++ NEWS 2014-04-08 16:28:26 +0000 @@ -14,6 +14,10 @@ Bug Fixes and other patches + - For from_is_list feature, use email address from original From: if + original From: has no display name and strip domain part from resultant + names that look like email addresses. (LP: #1304511) + - Added the list name to the vette log "held message approved" entry. (LP: 1295875)
_______________________________________________ Mailman-checkins mailing list Mailman-checkins@python.org Unsubscribe: https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org