Skip to Content.
Sympa Menu

en - [sympa-users] Variables in config.tt2 for automatic list famlies

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Max-Florian Bidlingmaier <address@concealed>
  • To: address@concealed
  • Subject: [sympa-users] Variables in config.tt2 for automatic list famlies
  • Date: Thu, 09 Jun 2011 11:37:23 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I'm just working my way to atomatic genrated lists using families. So my
problem is i need the full mailaddress of the list for a ldap lookup. [%
listname %] works for the local part. But I found no way to get the
domain name.Variables from
http://www.sympa.org/manual/list-definition#list_template_files does't
seem to be valid in this context. So my question. Which varibales are
available in this context and is there any chance to get the full
address the mail has been send to (list's mailaddress)?

greets
max

config.tt2:
- ------------snip-----------
user_data_source include2

owner
email address@concealed
gecos Whateveer
info someinfo
reception nomail

subject Test

include_ldap_2level_query
host localhost:389
user cn=postfix,ou=administratives,dc=lan
passwd test
suffix1 dc=organisation,dc=produktion,dc=lan
filter1 (eduSchoolPrimaryMail=[% listname %]@[% domain %])
attrs1 member
select1 all
scope1 sub
suffix2 [attrs1]
filter2 (objectclass=*)
attrs2 mail
select2 first
scope2 base

- --------snap------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJN8JRTAAoJEArKo5koqhKwXlsIAJUZMXdxSXhDVOZUy2Lwmblv
Lwz1LO+pHzR1MezQYNj+YI1SZDzJ0YiNQiRVwU3XI5ez5KSAMr8d0T/Y7RLV5Hgh
Sii2i0wDd9RFgxqQHG8NHOca4wpUUtZsQPQrpdWgAzZyU3nVaLABhC7yllMmJlHL
zfrs9QB7+djU5ZcGns9bsfVT5a3qWVy4b7evO2O50/yCFH+/w9w3MRyY6yY7rA1x
fGRP50qHB78F8Ga2XYp/IuxmxiOw0xmOvCOp5I4VO6Loq+Gk0jgdUCcQ6DPGkzDW
8n+TMyQC0o49/EKWrQhryjqUY+4tBAGAEqKKPL4wDuLwtccyvoV/mW4D2PHTMq4=
=P7xv
-----END PGP SIGNATURE-----


  • [sympa-users] Variables in config.tt2 for automatic list famlies, Max-Florian Bidlingmaier, 06/09/2011

Archive powered by MHonArc 2.6.19+.

Top of Page