diff options
Diffstat (limited to '')
-rw-r--r-- | Mailman/Utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py index f6cf607e..892bb5c8 100644 --- a/Mailman/Utils.py +++ b/Mailman/Utils.py @@ -1241,7 +1241,8 @@ def IsDMARCProhibited(mlist, email): 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:] |