Skip to Content.
Sympa Menu

en - [sympa-users] restore_list command line option

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Matt Taggart <address@concealed>
  • To: address@concealed
  • Subject: [sympa-users] restore_list command line option
  • Date: Fri, 22 Sep 2017 12:54:15 -0700

Hi sympa,

To close large lists we use the command line method:

sympa.pl --close_list=list@robot

since the process takes long enough that the web method times out.

Today we ran into a situation where were needed to _restore_ a large
list, but there doesn't seem to be a --restore_list option.

I took a look at what wwsympa is doing and for closing lists (in
do_close_list) and it's calling the generic $list->close from List.pm,
but for restoring lists (in do_restore_list) it's doing a bunch of
the work itself (change status, save config, restore subscriber dump,
insert users in db, savestats, setup aliases, etc).

Any chance that could be refactored and moved into a $list->restore
in List.pm and we could also get a --restore_list option?

Thanks,

--
Matt Taggart
address@concealed




Archive powered by MHonArc 2.6.19+.

Top of Page