summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormailman1998-02-25 00:17:06 +0000
committermailman1998-02-25 00:17:06 +0000
commitfc147d45212e92d78e525ecc7bd41d9900575ba0 (patch)
treef1ac961c4124a5a38dfe8ed4dd67eb023dad1cad
parenta2d7e2ff36573213377387d8ee3ec760a0e4bd95 (diff)
downloadmailman-fc147d45212e92d78e525ecc7bd41d9900575ba0.tar.gz
mailman-fc147d45212e92d78e525ecc7bd41d9900575ba0.tar.zst
mailman-fc147d45212e92d78e525ecc7bd41d9900575ba0.zip
Initial revision
-rwxr-xr-xbin/newlist53
1 files changed, 53 insertions, 0 deletions
diff --git a/bin/newlist b/bin/newlist
new file mode 100755
index 000000000..2af256cca
--- /dev/null
+++ b/bin/newlist
@@ -0,0 +1,53 @@
+#!/usr/local/bin/python
+
+
+ADDALIASES_CMD = '/home/mailman/mailman/bin/addaliases'
+
+import sys, crypt, os
+
+sys.path.append('/home/mailman/mailman/modules')
+
+import maillist, mm_utils
+
+list_name = raw_input("Enter the name of the list: ")
+owner_mail = raw_input("Enter the email of the person runing the list: ")
+list_pw = raw_input("Enter the initial list password:")
+
+newlist = maillist.MailList()
+pw = crypt.crypt(list_pw , mm_utils.GetRandomSeed())
+newlist.Create(list_name, owner_mail, pw)
+os.system('%s %s' % (ADDALIASES_CMD, list_name))
+newlist.SendTextToUser(subject="Your new mailing list", recipient=owner_mail,
+ sender='mailman-owner@%s' % newlist.host_name,
+ text='''
+The mailing list '%s' has just been created for you. Here is some basic
+information on your mailing list:
+
+Your mailing list password is:
+ %s
+
+You need this password to configure your mailing list. You also need it to
+handle administrative requests, such as approving mail if you choose to run
+a moderated list.
+
+You can configure your mailing list at the following web page:
+ %s
+
+The web page for users of your mailing list is:
+ %s
+
+You can even customize these web pages from the list configuration page.
+However, you do need to know html to be able to do this.
+
+To unsubscribe a user, from the mailing list web page, click on their
+email address as if you were that user. Where that user would put in
+his password to unsubscribe, put in your admin password. You can also
+use your password to change peoples options to digestified /
+non-digestified.
+
+Soon There should be a Mailman web page that will have a reference on
+running a Mailman mailing list. Until then, please address all
+questions to mailman-owner@%s. ''' % (list_name, list_pw,
+ newlist.GetScriptURL('admin'), newlist.GetScriptURL('listinfo'),
+ newlist.host_name))
+