Subject: | Small patch to make admin subscribe/unsubscribe work more easily |
Date: | Tue, 16 Oct 2012 14:06:58 +0000 |
To: | "bug-WWW-Mailman [...] rt.cpan.org" <bug-WWW-Mailman [...] rt.cpan.org> |
From: | "Andersen, Kurt" <kurt.andersen [...] hp.com> |
Using version 1.05, the following patch allows one to directly invoke the "members/add" page for bulk or automated subscriptions:
Show quoted text
------------------cut here----------------
--- Mailman.pm.orig 2012-10-16 09:39:25.000000000 -0400
+++ Mailman.pm 2012-10-16 09:41:18.000000000 -0400
@@ -373,7 +373,7 @@
# so, use a bit of currying
for my $section (
qw(
- general passwords language nondigest digest
+ general members passwords language nondigest digest
bounce archive gateway autoreply contentfilter topics
)
)
------------------end of patch---------------
With this change, one can call for adding one or more users just like changing options on the individual user pages:
my $options = $mm->admin('members/add');
$options->{subscribees} = $addr; # can do more than one, separate with \r\n
$mm->admin('members/add', $options);
I haven't tested it yet, but I suspect that members/remove would work just as well using the unsubscribee entry.
Cheers,
Kurt Andersen