summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormailman1998-03-09 19:11:26 +0000
committermailman1998-03-09 19:11:26 +0000
commit9bfb9bebf8b09885826dcbea4b1e9cc00d17c427 (patch)
tree46fe84047a38d0ba5c3ec4beab26745bf22ac4e2
parent06139d7931f754ae40abc934fa2fcef5ebe279c4 (diff)
downloadmailman-9bfb9bebf8b09885826dcbea4b1e9cc00d17c427.tar.gz
mailman-9bfb9bebf8b09885826dcbea4b1e9cc00d17c427.tar.zst
mailman-9bfb9bebf8b09885826dcbea4b1e9cc00d17c427.zip
For now i'm removing the use of the aliases-wrapper program - it
doesn't provide a sufficient framework for people to reliably make changes to the aliases file. Instead i'm just printing out the aliases entry, and pausing afterwards to give time for the addition to be made (or not, if it's already there, as in the case of a list that's being recreated).
-rwxr-xr-xbin/newlist23
1 files changed, 22 insertions, 1 deletions
diff --git a/bin/newlist b/bin/newlist
index e0ae08480..c8279ca5f 100755
--- a/bin/newlist
+++ b/bin/newlist
@@ -21,7 +21,28 @@ 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))
+
+###os.system('%s %s' % (ADDALIASES_CMD, list_name))
+print '''
+Entry needed in aliases file:
+
+#-- %(listname)s -- mailing list aliases:
+%(list)s |"%(wrapper)s post %(listname)s"
+%(admin)s |"%(wrapper)s mailowner %(listname)s"
+%(request)s |"%(wrapper)s mailcmd %(listname)s"
+%(owner1)s %(listname)s-admin
+%(owner2)s %(listname)s-admin
+''' % {'listname': list_name,
+ 'list': "%-24s" % (list_name + ":"),
+ 'wrapper': '/home/mailman/bin/wrapper',
+ 'admin': "%-24s" % ("%s-admin:" % list_name),
+ 'request': "%-24s" % ("%s-request:" % list_name),
+ 'owner1': "%-24s" % ("owner-%s:" % list_name),
+ 'owner2': "%-24s" % ("%s-owner:" % list_name)}
+
+print "Hit enter to continue with owner notification...",
+sys.stdin.readline()
+
newlist.SendTextToUser(subject="Your new mailing list", recipient=owner_mail,
sender='mailman-owner@%s' % newlist.host_name,
text='''