Subject: The mailing list for listmasters using Sympa
List archive
[sympa-users] Re: [Internet] Re: Re: Subscriber includes
- From: Thomas Berry <address@concealed>
- To: Sympa Users <address@concealed>
- Subject: [sympa-users] Re: [Internet] Re: Re: Subscriber includes
- Date: Thu, 12 Apr 2007 10:09:13 -0700
I agree, Sympa's list family feature is the way to go. But, where is the data for COURSE_SECTION and TERMCODE coming from? Is it parsed from the mailing list email address?
Thomas
Sylvain Amrani wrote:
Hi,
You can use families to do that. You parameters are entries in your xml
file.
You can also use ldap2_level queries :
1. you store your source_parameters in your ldap directory
2. the 1st ldap query requests the source_parameters
3. the 2nd ldap query use the result of the 1st one.
Sylvain.
Dallas Wisehaupt a écrit :
Thanks, but that's not what I'm looking for.
I'm not looking to include a file that has the list of users, I'm
looking to use an inclusion file. That inclusion file can specify a
query that will be executed with parameters substituted.
The example for the owners_include:
in the config file:
owner_include
source myfile
source_parameters COURSE_SECTION,TERMCODE
in myfile.incl
include_ldap_query
host ldap.server.edu
suffix o=server,o=edu
filter (&(course=[% param.0 %])(term=[% param.1 %]))
attrs mail
select all
scope sub
That would cause the filter to be:
filter (&(course=COURSE_SECTION)(term=TERMCODE))
Is this setup possible for subscribers also?
The overall goal is to have 3 inclusion files that can be referenced by
100s or 1000s of course lists. Then if the requirements change for the
lists, only one place requires alteration.
Dallas
On Thu, 12 Apr 2007, Thomas Berry wrote:
Yes. Use the list config setting "include_file"
include_file <path to file>
This parameter will be interpreted only if the user data source value
is set to include. The file should contain one e-mail address per
line with an optional user description, separated from the email
address by spaces (lines beginning with a �#� are ignored).
Sample included file :
## Data for Sympa member import
address@concealed John Smith - math department
address@concealed Sarah Hanrahan - physics department
Dallas Wisehaupt wrote:
I've got a (hopefully quick) question about subscriber includes.
Is it possible to have the subscriber list use an inclusion file?
I know I can do LDAP, SQL, file (as a list of addresses and names),
etc., but I can't determine if I could use an inclusion file for
subscribers in a similar manner as the owner_include and editor_include
parameters.
Dallas
-
[sympa-users] Subscriber includes,
Dallas Wisehaupt, 04/12/2007
-
[sympa-users] Re: Subscriber includes,
Thomas Berry, 04/12/2007
-
[sympa-users] Re: Re: Subscriber includes,
Dallas Wisehaupt, 04/12/2007
-
[sympa-users] Re: [Internet] Re: Re: Subscriber includes,
Sylvain Amrani, 04/12/2007
-
[sympa-users] Re: [Internet] Re: Re: Subscriber includes,
Thomas Berry, 04/12/2007
- [sympa-users] Re: Re: [Internet] Re: Re: Subscriber includes, Dallas Wisehaupt, 04/12/2007
-
[sympa-users] Re: [Internet] Re: Re: Subscriber includes,
Thomas Berry, 04/12/2007
-
[sympa-users] Re: [Internet] Re: Re: Subscriber includes,
Sylvain Amrani, 04/12/2007
-
[sympa-users] Re: Re: Subscriber includes,
Dallas Wisehaupt, 04/12/2007
-
[sympa-users] Re: Subscriber includes,
Thomas Berry, 04/12/2007
Archive powered by MHonArc 2.6.19+.