summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw1999-01-09 19:17:28 +0000
committerbwarsaw1999-01-09 19:17:28 +0000
commit8305cc54c50462503b33f79331c3da25a7cf82b0 (patch)
treefa5decdcf75f5b036fcf4ccd7127949ce09214e9
parentab90d4e65e5ae484b1eed981ef3d6a0dcd071266 (diff)
downloadmailman-8305cc54c50462503b33f79331c3da25a7cf82b0.tar.gz
mailman-8305cc54c50462503b33f79331c3da25a7cf82b0.tar.zst
mailman-8305cc54c50462503b33f79331c3da25a7cf82b0.zip
Use the new ValidateEmail() interface.
-rwxr-xr-xbin/add_members4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/add_members b/bin/add_members
index 3efa36ea5..b4940d96a 100755
--- a/bin/add_members
+++ b/bin/add_members
@@ -107,7 +107,9 @@ def SendExplanation(ml, users):
def AddMember(ml, addr, digest_p, send_welcome_msg):
# if the line was empty, just ignore it
pw = GetRandomPassword()
- if not Mailman.Utils.ValidEmail(addr):
+ try:
+ Mailman.Utils.ValidateEmail(addr)
+ except Mailman.Errors.EmailAddressError:
print "not a valid email address:", addr
return
try: