From lang at b1-systems.de Mon Sep 27 07:17:52 2021 From: lang at b1-systems.de (Ralf Lang) Date: Mon, 27 Sep 2021 09:17:52 +0200 Subject: [ingo] Add default entries in Database for new users In-Reply-To: <54a64411-0189-a14a-4bfe-64635803eeee@dcs.bbk.ac.uk> References: <54a64411-0189-a14a-4bfe-64635803eeee@dcs.bbk.ac.uk> Message-ID: Hi Andrew, Am 24.09.21 um 19:00 schrieb Andrew Watkins: > Hello, > > Before I try look at this I would like to know if anyone has done the > following: > > I want to add some ingo rules into all NEW users at creation time. The > easy part is adding .forward & .procrcmail files into the filesystem, > but I also need to add some data to the database so that it knows > options have been set. > > i.e. Add to ingo_rules & ingo_forwards > > Thanks > > Andrew as with most topics, I would normally advise manipulating the database directly. However, it seems like we are still missing a hook or cli script to facilitate provisioning. -- Ralf Lang Linux Consultant / Developer Tel.: +49-170-6381563 Mail: lang at b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 From lang at b1-systems.de Mon Sep 27 07:32:39 2021 From: lang at b1-systems.de (Ralf Lang) Date: Mon, 27 Sep 2021 09:32:39 +0200 Subject: [ingo] Add default entries in Database for new users In-Reply-To: References: <54a64411-0189-a14a-4bfe-64635803eeee@dcs.bbk.ac.uk> Message-ID: <38a0301a-f288-19c3-ef7e-661b88d83440@b1-systems.de> Am 27.09.21 um 09:17 schrieb Ralf Lang: > Hi Andrew, > > > Am 24.09.21 um 19:00 schrieb Andrew Watkins: >> Hello, >> >> Before I try look at this I would like to know if anyone has done the >> following: >> >> I want to add some ingo rules into all NEW users at creation time. >> The easy part is adding .forward & .procrcmail files into the >> filesystem, but I also need to add some data to the database so that >> it knows options have been set. >> >> i.e. Add to ingo_rules & ingo_forwards >> >> Thanks >> >> Andrew > > as with most topics, I would normally advise manipulating the database > directly. > However, it seems like we are still missing a hook or cli script to > facilitate provisioning. > The word "against" is missing. :| I would normally advise against manipulating the database directly. One option would be to use the share backend and share the mandatory filters with the user. -- Ralf Lang Linux Consultant / Developer Tel.: +49-170-6381563 Mail: lang at b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537