summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormsapiro2006-06-08 15:29:53 +0000
committermsapiro2006-06-08 15:29:53 +0000
commit6953990b450bb330f7202319f47d7af49ee9db13 (patch)
tree6b52ccdd41aafb34826d9fad014aa575c6131b6e
parent6d23cba924986780b6019471514156c90fdac74c (diff)
downloadmailman-6953990b450bb330f7202319f47d7af49ee9db13.tar.gz
mailman-6953990b450bb330f7202319f47d7af49ee9db13.tar.zst
mailman-6953990b450bb330f7202319f47d7af49ee9db13.zip
-rw-r--r--Mailman/bin/newlist.py10
-rw-r--r--templates/en/admindbdetails.html2
2 files changed, 10 insertions, 2 deletions
diff --git a/Mailman/bin/newlist.py b/Mailman/bin/newlist.py
index bd2ec0dde..26c7cd42b 100644
--- a/Mailman/bin/newlist.py
+++ b/Mailman/bin/newlist.py
@@ -103,6 +103,13 @@ language code."""))
Normally the administrator is notified by email (after a prompt) that their
list has been created. This option suppresses the prompt and
notification."""))
+ parser.add_option('-a', '--automate',
+ default=False, action='store_true',
+ help=_("""\
+This option suppresses the prompt prior to administrator notification but
+still sends the notification. It can be used to make newlist totally
+non-interactive but still send the notification, assuming listname,
+listadmin-addr and admin-password are all specified on the command line."""))
opts, args = parser.parse_args()
# Is the language known?
if opts.language not in mm_cfg.LC_DESCRIPTIONS:
@@ -197,9 +204,10 @@ def main():
sys.modules[modname].create(mlist)
# And send the notice to the list owner
- if not opts.quiet:
+ if not opts.quiet and not opts.automate:
print _('Hit enter to notify $listname owner...'),
sys.stdin.readline()
+ if not opts.quiet:
siteowner = Utils.get_site_email(mlist.host_name, 'owner')
d = dict(
listname = listname,
diff --git a/templates/en/admindbdetails.html b/templates/en/admindbdetails.html
index 7547a3448..d97fcec11 100644
--- a/templates/en/admindbdetails.html
+++ b/templates/en/admindbdetails.html
@@ -14,7 +14,7 @@ message's headers and an excerpt of the message body.
postings, you can still forward or preserve the message (see
below).
-<li><b>Approve</b> -- Approve the message, sending it on to the list.
+<li><b>Accept/Approve</b> -- Accept the message, sending it on to the list.
For membership requests, approve the change in membership status.
<li><b>Reject</b> -- Reject the message, sending a rejection notice to