Skip to Content.
Sympa Menu

devel - [sympa-dev] Creating Family lists

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: "Chris Andrews" <address@concealed>
  • To: "address@concealed" <address@concealed>
  • Subject: [sympa-dev] Creating Family lists
  • Date: Mon, 10 Dec 2007 17:07:35 -0500

I am try to add a restrict post feature to sympa, one where one list
contains the list of acceptable subscribers for another list. I have a
scenario with some custom code that works well. I now want to automate the
creation of the restrict post lists. I was thinking of using the Family
feature, as these lists are used only to hold a list of approved posters.
The lists will have most of their setting locked down. The problem is that
for the life of me I cannot figure out how to create the $family variable to
send over. I am hoping to use:

admin.pm create_list

########################################################
# create_list
########################################################
# Create a list : used by sympa.pl--instantiate_family
# with family concept
#
# IN : - $param : ref on parameters of the config list
# with obligatory :
# $param->{'listname'}
# $param->{'subject'}
# $param->{'owner'} (or owner_include):
# array of hash,with key email obligatory
# $param->{'owner_include'} array of hash :
# with key source obligatory
# - $family : the family object
# - $robot : the list's robot
# - $abort_on_error : won't create the list directory on
# tt2 process error (usefull for dynamic lists that
# throw exceptions)
# OUT : - hash with keys :
# -list :$list
# -aliases : undef if not applicable; 1 (if ok) or
# $aliases : concated string of alias if they
# are not installed or 1(in status open)
#######################################################

How do I create the $family object?

---
Chris Andrews
Boston College
Collaboration Team

Attachment: smime.p7s
Description: S/MIME cryptographic signature



  • [sympa-dev] Creating Family lists, Chris Andrews, 12/10/2007

Archive powered by MHonArc 2.6.19+.

Top of Page