summaryrefslogtreecommitdiff
path: root/Mailman/bin/newlist.py
diff options
context:
space:
mode:
authormsapiro2006-06-08 15:29:53 +0000
committermsapiro2006-06-08 15:29:53 +0000
commit6953990b450bb330f7202319f47d7af49ee9db13 (patch)
tree6b52ccdd41aafb34826d9fad014aa575c6131b6e /Mailman/bin/newlist.py
parent6d23cba924986780b6019471514156c90fdac74c (diff)
downloadmailman-6953990b450bb330f7202319f47d7af49ee9db13.tar.gz
mailman-6953990b450bb330f7202319f47d7af49ee9db13.tar.zst
mailman-6953990b450bb330f7202319f47d7af49ee9db13.zip
- newlist.py
Added 'automate' option to be 'quiet' but still send admin notice. - admindbdetails.html Changed 'Approve' wording to 'Approve/Accept' for consistency with button labels.
Diffstat (limited to 'Mailman/bin/newlist.py')
-rw-r--r--Mailman/bin/newlist.py10
1 files changed, 9 insertions, 1 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,