diff options
| author | cotton | 1998-11-23 09:38:28 +0000 |
|---|---|---|
| committer | cotton | 1998-11-23 09:38:28 +0000 |
| commit | 3571c21b68ed73b24ac344f0600246dedd98e61a (patch) | |
| tree | d4431b84ee45fd1c15f1ff2abe90aeff88a47555 | |
| parent | f3d4eca643058c711324dc2e54ec6dd3aadb9dc1 (diff) | |
| download | mailman-3571c21b68ed73b24ac344f0600246dedd98e61a.tar.gz mailman-3571c21b68ed73b24ac344f0600246dedd98e61a.tar.zst mailman-3571c21b68ed73b24ac344f0600246dedd98e61a.zip | |
convert_list now runs Utils.ValidEmail() on all addresses, and prints
out a warning if the test fails.
this way comments and most accidental stuff that gets into a file to
import should not be added.
scott
| -rwxr-xr-x | bin/convert_list | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/convert_list b/bin/convert_list index a9490e558..532364242 100755 --- a/bin/convert_list +++ b/bin/convert_list @@ -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): + print "not a valid email address:", addr + return try: ml.ApprovedAddMember(addr, pw, digest_p, send_welcome_msg) except Mailman.Errors.MMAlreadyAMember: |
