Subject: The mailing list for listmasters using Sympa
List archive
- From: Olivier Salaün <address@concealed>
- To: Steven Peterson <address@concealed>
- Cc: address@concealed
- Subject: [sympa-users] Re: Using editor_include for lists
- Date: Thu, 16 Aug 2007 10:04:15 +0200
Hi Steven,
As an introduction to this email I provide some background and news about the user_data_source list parameter.
In the former days Sympa did not use a RDBMS and subscribers informations were stored in flat ''subscribers'' files. We then introduced the ability to include members defined in an external data source and also the optional use of a RDBMS to store subscribers. Therefore we created the 'user_data_source' parameter. We ended up merging the 'database' and 'include' features with 'include2'. The goal was then to give up the 'user_data_source' parameter and we have almost reached this goal. Starting with Sympa 5.3.x the 'include' mode is considered a sinonym for 'include2' and more recently we have removed the 'file' and 'database' modes in the development version of Sympa. This means that in Sympa 5.4 the only supported mode will be 'include2'. Note that migration process has been automated.
Steven Peterson a écrit :
We would like to include the same two moderators in every list in a given robot, and I believe the list parameter editor_include allows for this but I am not sure how it works yet.The editor_include and owner_include don't require a special value for the user_data_source. The reason is that it was introduced in Sympa after 'include2' was defined as the default mode.
1. To which value do I need to set the user_data_source in order to use an editor_include data_source that has an include_file directive? include or include2
o When talking about data_sources, the manual seems to say that for any data_source to use the include_file directive, the user_data_source value for the robot must be set to 'include'This page was not uptodate ; I've fixed it.
http://www.sympa.org/wiki/manual/parameters-data-sources#include_file
Sorry about this mistake ; the behavior around user_data_source has evolved quite a lot in Sympa along the versions.
o But when the manual is talking about data_includes in list configuration, it seems to say the user_data_source must be set to 'include2'I've fixed the sentence.
http://www.sympa.org/wiki/manual/list-definition#data_inclusion_file
2. If I use a local file path to the include_file parameter (editors.txt below), where is the path relative to (the data_sources directory?)
3. Is the below configuration correct?You can't set the 'user_data_source' parameter in a robot.conf or sympa.conf. It is a list configuration parameter ; it should be set in the list 'config' file manually or via the web interface.
robot.conf has:
user_data_source include2
config file for list has:Wrong ; the file should be 'data_sources/editorfile_*.incl*_'
editor_include
reception mail
source editorfile
data_sources/editorfile:
include_file ./editors.txtYou should use an absolute file path because the sympa processes perform chdir()
editors.txt:Correct.
address@concealed Joe Blow
address@concealed Jane Doe
I've completed the example provided in https://www.sympa.org/wiki/manual/list-definition#data_inclusion_file to provide complete file path.
-
[sympa-users] Using editor_include for lists,
Steven Peterson, 08/15/2007
-
[sympa-users] Re: Using editor_include for lists,
Olivier Salaün, 08/16/2007
- [sympa-users] RE: Re: Using editor_include for lists, Yves Blusseau, 08/16/2007
-
[sympa-users] Re: Re: Using editor_include for lists,
Steven Peterson, 08/16/2007
- [sympa-users] Re: Re: Re: Using editor_include for lists, Olivier Salaün, 08/16/2007
-
[sympa-users] Re: Using editor_include for lists,
Olivier Salaün, 08/16/2007
Archive powered by MHonArc 2.6.19+.