Barry Finkel wrote:
>
>Is there a chance of being able to specify more than one e-mail address
>for the list owner with the
>
> /usr/sbin/newlist
>
>command? That is all I really need.
The attached newlist.patch.txt patch to newlist should do it. Note that
the list create process applies a rather simple syntactic check on the
owner email address. With this patch, that check will only be applied
to the first address if more than one is supplied. The remaining
addresses will not be checked at all.
--
Mark Sapiro <[email protected]> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
--- newlist 2009-09-14 11:47:56.046875000 -0700
+++ newlistx 2009-10-02 12:51:16.671875000 -0700
@@ -47,6 +47,8 @@
You can specify as many of the arguments as you want on the command line:
you will be prompted for the missing ones.
+Note that listadmin-addr can be a comma separated list of addresses.
+
Every Mailman list has two parameters which define the default host name for
outgoing email, and the default URL for all web interfaces. When you
configured Mailman, certain defaults were calculated, but if you are running
@@ -173,7 +175,9 @@
owner_mail = args[1]
else:
owner_mail = raw_input(
- _('Enter the email of the person running the list: '))
+ _('Enter the email(s) of the person running the list: '))
+ owner_emails = owner_mail.split(',')
+ owner_mail = owner_emails[0]
if len(args) > 2:
listpasswd = args[2]
@@ -207,6 +211,9 @@
except Errors.MMListAlreadyExistsError:
usage(1, _('List already exists: %(listname)s'))
+ # assign the owners
+ mlist.owner = owner_emails
+
# Assign domain-specific attributes
mlist.host_name = host_name
mlist.web_page_url = web_page_url
@@ -245,7 +252,7 @@
i18n.set_language(mlist.preferred_language)
try:
msg = Message.UserNotification(
- owner_mail, siteowner,
+ owner_emails, siteowner,
_('Your new mailing list: %(listname)s'),
text, mlist.preferred_language)
msg.send(mlist)
------------------------------------------------------
Mailman-Users mailing list
[email protected]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe:
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Security Policy: http://wiki.list.org/x/QIA9