Skip to Content.
Sympa Menu

en - Re: [sympa-users] Programatic Creation Of Sympa Mailing Lists

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Edward Rynes <address@concealed>
  • To: Francis Lachapelle <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [sympa-users] Programatic Creation Of Sympa Mailing Lists
  • Date: Thu, 11 Aug 2005 14:14:59 -0400

How do I do that from an external program?


On Aug 11, 2005, at 1:47 PM, Francis Lachapelle wrote:

Edward Rynes wrote:

I am looking for suggestions on how to programatically create and populate new mailing lists in Sympa (5.0.1).
One example of what we are trying to do is to automatically create a new mailing list for every course offered by the University, owned by the instructor and have all of the students registered for the class as subscribers.
I can create XML files and call sympa.pl to create the lists but how do I subscribe the students?
If I have a list of students how do I "send" that list to sympa?


Define the parameter "include_file" in your list's configuration file:

http://sympa.org/doc/html/node19.html#SECTION001928000000000000000


If the students are in an LDAP group how do I tell Sympa to include that group?


Define the parameter "include_ldap_query" in your list's configuration file:

http://sympa.org/doc/html/node19.html#SECTION001926000000000000000

One related paramater to be aware of wrt to inclusions is "ttl", the time to live of the extracted data:

http://sympa.org/doc/html/node19.html#SECTION001922000000000000000


Francis





Archive powered by MHonArc 2.6.19+.

Top of Page