diff options
| author | mailman | 1998-02-25 00:20:23 +0000 |
|---|---|---|
| committer | mailman | 1998-02-25 00:20:23 +0000 |
| commit | cc7129cf06e4e596600f9e848cb20d049a246d51 (patch) | |
| tree | 5848b42dadde4a64cc783349726d67a358a00417 | |
| parent | fc147d45212e92d78e525ecc7bd41d9900575ba0 (diff) | |
| download | mailman-cc7129cf06e4e596600f9e848cb20d049a246d51.tar.gz mailman-cc7129cf06e4e596600f9e848cb20d049a246d51.tar.zst mailman-cc7129cf06e4e596600f9e848cb20d049a246d51.zip | |
Check the new list name immediately, and bailout with status 1 if it
already exists.
| -rwxr-xr-x | bin/newlist | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/newlist b/bin/newlist index 2af256cca..54f77c3ea 100755 --- a/bin/newlist +++ b/bin/newlist @@ -10,6 +10,11 @@ sys.path.append('/home/mailman/mailman/modules') import maillist, mm_utils list_name = raw_input("Enter the name of the list: ") + +if list_name in maillist.list_names(): + sys.stderr.write("** List with name %s already exists\n" % `list_name`) + raise SystemExit, 1 + owner_mail = raw_input("Enter the email of the person runing the list: ") list_pw = raw_input("Enter the initial list password:") |
