Skip Menu |
 

This queue is for tickets about the WWW-Mailman CPAN distribution.

Report information
The Basics
Id: 72891
Status: open
Priority: 0/
Queue: WWW-Mailman

People
Owner: Nobody in particular
Requestors: will [...] teambadger.co.uk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Mass (un)subscribes
Date: Fri, 2 Dec 2011 14:01:46 -0000
To: <bug-www-mailman [...] rt.cpan.org>
From: "Will Payne" <will [...] teambadger.co.uk>
Hi, Is there a way to mass (un)subscribe users with the module as an admin user? Will
From: reinpost [...] win.tue.nl
Download (untitled) / with headers
text/plain 884b
On Fri Dec 02 09:01:42 2011, will@teambadger.co.uk wrote: Show quoted text
> Hi, > > Is there a way to mass (un)subscribe users with the module as an admin
user? Show quoted text
> > Will
Yes and no. I have written a shallow command line wrapper around WWW::Mailman that I use to subscribe and unsubscribe users (and list members, change list options, etc.) The script allows the user to specify attributes exposed by WWW::Mailman to be shown or set on the command line. To (un)subscribe an email address, I just set the '(un)subscribees' variable to that address. I haven't attached the script, because it should be optimized and is also a little buggy (e.g. specifying multiple email addresses doesn't appear to work, even though it should). But because it's a script, I can just run it in a loop to implement bulk operations. It works well enough for my own purposes. If you're interested, let me know.
Download (untitled) / with headers
text/plain 610b
On Fri Dec 16 05:16:10 2011, rpost wrote: Show quoted text
> On Fri Dec 02 09:01:42 2011, will@teambadger.co.uk wrote:
> > Hi, > > > > Is there a way to mass (un)subscribe users with the module as an
admin Show quoted text
> user?
> > > > Will
> > Yes and no. I have written a shallow command line wrapper around > WWW::Mailman that I use to subscribe and unsubscribe users (and list > members, change list options, etc.) >
There's a form for mass operations (add and remove), so it shouldn't be too much work to add support for it. Testing is going to be an issue, though. ;-) I'll have a look into it when I get some time. -- BooK
Subject: RE: [rt.cpan.org #72891] Mass (un)subscribes
Date: Thu, 22 Dec 2011 18:10:54 -0000
To: <bug-WWW-Mailman [...] rt.cpan.org>
From: "Will Payne" <will [...] teambadger.co.uk>
Download (untitled) / with headers
text/plain 1.2k
Was easy enough to do myself: $res = $ua->post("http://xxxxxxxxx/mailman/admin/$list/members/add", Content_Type => 'form-data', Content => [ subscribe_or_invite => '0', send_welcome_msg_to_this_batch => '0', send_notifications_to_list_owner => '0', subscribees => $email, setmemberopts_btn => 'Submit Your Changes' ] ); Will Show quoted text
-----Original Message----- From: Philippe 'BooK' Bruhat via RT [mailto:bug-WWW-Mailman@rt.cpan.org] Sent: 22 December 2011 17:56 To: will@teambadger.co.uk Subject: [rt.cpan.org #72891] Mass (un)subscribes <URL: https://rt.cpan.org/Ticket/Display.html?id=72891 > On Fri Dec 16 05:16:10 2011, rpost wrote:
> On Fri Dec 02 09:01:42 2011, will@teambadger.co.uk wrote:
> > Hi, > > > > Is there a way to mass (un)subscribe users with the module as an
admin
> user?
> > > > Will
> > Yes and no. I have written a shallow command line wrapper around > WWW::Mailman that I use to subscribe and unsubscribe users (and list > members, change list options, etc.) >
There's a form for mass operations (add and remove), so it shouldn't be too much work to add support for it. Testing is going to be an issue, though. ;-) I'll have a look into it when I get some time. -- BooK


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.