Skip to Content.
Sympa Menu

en - [sympa-users] list type creation templates flexibility

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: address@concealed (Peter Grandi)
  • To: Sympa users <address@concealed>
  • Subject: [sympa-users] list type creation templates flexibility
  • Date: Fri, 27 Jun 2014 12:07:35 +0100

Will be moving a few thousand lists to Sympa, and they have been
created on the original system with somewhat weird combinations
of permissions.

We will have a given set of default list types and related
profile '.tt2' templates for newly created lists, but for the
lists above I'd like to create configurations as close as
possible to the original ones, weirdness and all.

This would require probably creating dozens of subtly different
list profile '.tt2' templates, and I'd rather avoid that.

Looking at the way 'sympa.pl --create_list --input_file ....'
works the XML file is described here:

http://www.sympa.org/manual_6.1/list-creation#xml_file_format

and my understanding is that 'list', 'type' and 'description'
are mandatory elements and must have those names, but all the
others are just fed into Template Toolkit for the expansion of
the 'config.tt2' file for the given 'type'.

If that were the case I could create a single 'config.tt2' file
with a larger set of template parameters and handle all the
variety in parameters by setting values in the input XML file
instead of creating many mlist types with hardcoded fields.

Is that something I can do?

The consequent question is then where is the list of possible
options recognized by 'sympa.pl' in the file _generated_ from
the XML input file and the 'config.tt2' file; I have had a look
at several sample list profile 'config.tt2' files and I think
that I have some idea, but a pointer to a full list would be
welcome.



Archive powered by MHonArc 2.6.19+.

Top of Page