Hi,
On Sun, Jul 27, 2014 at 4:29 PM, ML mail <[email protected]> wrote: > Yes, I guess something like a "-m" option would be good to specify that > the e-mails being added with the "-a" option are moderators. Right now I > have switched to using the REST API as it has all features I need, great > work btw! > > > > On Saturday, July 26, 2014 12:20 AM, Barry Warsaw <[email protected]> wrote: > > > > On Jul 24, 2014, at 02:03 PM, 'ML mail' via barry wrote: > > > >In Mailman3 it would be nice to be able to add moderators to a mailing > list > >from the command line using the mailman command. Currently I can only see > the > >possibility to add new members to a mailing list, or did I miss something > >here? > > You're not missing anything. The CLI for adding members isn't fantastic - > you > have to provide a file with one member per line. The way to extend this > would > be to be able to specify the members' role when adding them. I haven't > thought of an elegant way to do this via the CLI, especially when multiple > members can be added. Once a good interface is designed, it would be > pretty > easy to write the code to do it. > > The CLI I built as part of GSoC 2014 supports the above features http://bazaar.launchpad.net/~rajeevs1992/mailman.client/mailmancli It is based on the REST API. To Add moderators you can do ./mmclient add-moderator list [email protected] --user [email protected] [email protected] ... Similarly to add owners do ./mmclient add-owner list [email protected] --user [email protected] [email protected] To add normal members ./mmclient subscribe user [email protected] [email protected] --list [email protected] You might want to install the PLY library [ https://pypi.python.org/pypi/ply/3.4] to test the CLI fully. _______________________________________________ Mailman-Developers mailing list [email protected] https://mail.python.org/mailman/listinfo/mailman-developers Mailman FAQ: http://wiki.list.org/x/AgA3 Searchable Archives: http://www.mail-archive.com/mailman-developers%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org Security Policy: http://wiki.list.org/x/QIA9
