Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--open_list command line option #62

Closed
taggart opened this issue Sep 26, 2017 · 3 comments
Closed

--open_list command line option #62

taggart opened this issue Sep 26, 2017 · 3 comments
Milestone

Comments

@taggart
Copy link
Contributor

taggart commented Sep 26, 2017

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).

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

Thanks

@taggart
Copy link
Contributor Author

taggart commented May 17, 2018

I had a need to be able to do this again today and remembered this issue. Any progress?
Thanks

@ikedas
Copy link
Member

ikedas commented Jul 24, 2018

@taggart, can you please check the PR above?

@ikedas ikedas added this to the 6.2.36 milestone Jul 24, 2018
@ikedas
Copy link
Member

ikedas commented Aug 16, 2018

PR merged. close.

@ikedas ikedas closed this as completed Aug 16, 2018
@ikedas ikedas changed the title restore_list command line option --open_list command line option Aug 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants