tel2 has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

I'm writing a Perl script to backup/restore GNU Mailman mailing lists, including member addresses, and all the settings like Sender filters, options for each list member, etc. (If I'm re-inventing a (free) wheel, please tell me the alternative before I waste too much time on it.)

I'm trying to use the WWW::Mailman module and I've been able to dump the settings from all the sections I require, but one thing I haven't worked out is, when I restore this stuff, how can I set the options for each member (e.g. nodups), without having to get the script to login as each member. WWW::Mailman shows how to change a list member's options, but it seems the script must login as that member first.

Can WWW::Mailman do this, or am I going to have to use WWW::Mechanize or something else? Some sample code would be appreciated (e.g. something to set nodupes=on for some member).

Thanks.

Replies are listed 'Best First'.
Re: Backup/restore Mailman mailing lists
by zwon (Abbot) on Jul 26, 2012 at 11:21 UTC
      Thanks zwon,

      Yes, I seem to recall seeing that (4.06 & 4.18) when I was looking into this a year or so ago, but I couldn't see how to do it in this shared webserver environment (which has cPanel).

      Thanks anyway.

        Well, cpanel supports cron jobs