Skip to Content.
Sympa Menu

en - Re: [sympa-users] Automating creation of lists

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: address@concealed
  • To: Barry Flanagan <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [sympa-users] Automating creation of lists
  • Date: Mon, 19 Jun 2006 12:32:06 +0200

Barry Flanagan wrote:

Hi,

I need to automate the creation of a large amount of lists from basic
templates. This is for a schools project, where each school would have a
mailing list for Staff, and for Students by default. When the school is
created I need to remotely create this list in Sympa.

The lists will all be the same with all authentication and subscriber
info coming from LDAP. The only difference will be the name of the list,
the username of the list owner, and the LDAP filter for the list.


The "list families" was developed exactly for this purpose. The idea is to create a set of file tht describe the kind of list you want to create. They are templates where vars are replaced by their value when running list family intentiation (vars are specified in a XML data set file as input for intentiation). The list instantiation can create a hugue number of list with just one command sympa.pl --instantiate_family=family_name --robot=robot_name --input_file=/path/to/file.xml .

The malimy instentiation can also removed obsolete lists. Check this feature in Sympa documentation.

Anyone have any suggestions on the best way of achieving this? SOAP does
not appear to handle list creation as of yet.

Next version will probably include soap list creation, but soap is not good way to perfom what you need because your problem is not only to create lists but also to remove them when needed see : http://www.sympa.org/doc/html/node20.html

Serge Aumont



Archive powered by MHonArc 2.6.19+.

Top of Page