------------------------------------------------------------ revno: 1640 fixes bug: https://launchpad.net/bugs/1568445 committer: Mark Sapiro <m...@msapiro.net> branch nick: 2.1 timestamp: Sat 2016-04-09 21:53:04 -0700 message: Use rfind rather than find to find '@' for domain splitting. modified: Mailman/Utils.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/Utils.py' --- Mailman/Utils.py 2016-04-09 22:43:47 +0000 +++ Mailman/Utils.py 2016-04-10 04:53:04 +0000 @@ -1241,7 +1241,8 @@ return False email = email.lower() - at_sign = email.find('@') + # Scan from the right in case quoted local part has an '@'. + at_sign = email.rfind('@') if at_sign < 1: return False f_dom = email[at_sign+1:] === modified file 'NEWS' --- NEWS 2016-04-09 22:43:47 +0000 +++ NEWS 2016-04-10 04:53:04 +0000 @@ -19,6 +19,9 @@ Bug fixes and other patches + - DMARC mitigations will now find the From: domain to the right of the + rightmost '@' rather than the leftmost '@'. (LP: #1568445) + - DMARC mitigations for a sub-domain of an organizational domain will now use the organizational domain's sp= policy if any. (LP: #1568398)
_______________________________________________ Mailman-checkins mailing list Mailman-checkins@python.org Unsubscribe: https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org