Owner and editors edition through the command line
Created by: dverdin
Expected Behavior
A lot of administrators have built scripts to mass edit config files, especially for owners provisioning.
Current Behavior
These scripts are broken as of Sympa 6.2.34 due to the fact that editors and owners are now located in the database only. These are the only list parameters having such an exception.
Possible Solution
I plan to add options to sympa.pl to manage list adminsitrators. That way, these scripts will keep on working, simply by replacing the sed or whatever command the admins were using by the relevant sympa.pl command.
These options would make usage of the new Sympa code and use the new primitives to add / replace / delete adminstrators.
Actually, this would even be an improvement to previous Sympa versions because such options would have been very usefull before, for example when somebody leaves an institution and her replacement needs to take over the leaver's list.
Here is the intended interface I want to provide:
sympa.pl --add-admin --list= --vhost= --email=an@email --role=<owner|editor> --visibility= --profile=<privileged|normal> --reception_mode=<reception_mode> --gecos
sympa.pl --delete-admin --list= --vhost= --email=an@email --role=<owner|editor>
sympa.pl --replace-admin --list= --vhost= --previous_admin=an@email --new_admin=an.other@email
In each case, the "last modified by" list parameter would contain "listmaster@domain.tld" email.
What do you think? I could do this easily and quickly using the current codebase.
Context
I'm in contact with a lot of listmasters through the lists and a lot complained about the lost functionnality, while agreeing the vanishing of the cache problem was very cool.