Subject: Developers of Sympa
List archive
- From: Thomas Berry <address@concealed>
- To: sympa dev <address@concealed>
- Subject: [sympa-dev] Re: Family List instantiation
- Date: Wed, 25 Apr 2007 14:12:36 -0700
I spoke too soon.. That was exactly the code I was searching for.
use strict;
use Time::Local;
use lib '/usr/local/jpl/msg/list/sympa/bin';
use Conf;
use List;
use Family;
unless(Conf::load('/etc/sympa.conf')) {
exit 1;
}
my $listname = lc (shift @ARGV) or die "where's the list name?\n";
my $familyname = shift @ARGV or die "where's the family name?\n";
my $robot = shift @ARGV or die "where's the name of the robot?\n";
my $family;
unless ($family = Family->new($familyname, $robot)) {
die "Unable to get family object\n";
}
my $list;
unless ($list = List->new($listname, $robot)) {
die "Unable to get list config\n";
}
my $param = {
listname => $listname,
status => $list->{'admin'}{'status'},
};
open CONFIG, ">/tmp/config";
tt2::parse_tt2($param,'config.tt2',\*CONFIG,[$family->{'dir'}]);
close CONFIG;
exit 0;
Thomas Berry wrote:
Found it!
Here's the code that creates the family generated config file:
open CONFIG, ">$list->{'dir'}/config";
tt2::parse_tt2($param,'config.tt2',\*CONFIG,[$family->{'dir'}]);
close CONFIG;
Unfortunately, that's not quite the XML import file the update method expects.. but I think I can work around this.
Thomas
Thomas Berry wrote:
I'm trying to follow the logic of the automatic list creation process, but have not been able to identify how Sympa generates an import file based on a Family's configuration (config.tt2).
All Sympa methods that deal with the creation and modification of lists require an import file, but I can find no code that describes how the automatic list creation process creates the initial import file for a new mailing list.
Any help to point me in the direction would be greatly appreciated.
Thomas
-
[sympa-dev] Family List instantiation,
Thomas Berry, 04/25/2007
-
[sympa-dev] Re: Family List instantiation,
Thomas Berry, 04/25/2007
- [sympa-dev] Re: Family List instantiation, Thomas Berry, 04/25/2007
-
[sympa-dev] Re: Family List instantiation,
Olivier Salaün - CRU, 04/26/2007
- [sympa-dev] Re: Re: Family List instantiation, Olivier Salaün - CRU, 04/26/2007
-
[sympa-dev] Re: Family List instantiation,
Thomas Berry, 04/25/2007
Archive powered by MHonArc 2.6.19+.