Matthew Hodgson wrote:

This seemed to disappear into the void first time, so i'll try resending
it from pine rather than thunderbird...

---------- Forwarded message ----------
Date: Thu, 22 Apr 2004 11:31:56 +0100
From: Matthew Hodgson <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: libconfig patch for including files

Hi,

I have a slightly strange requirement for being able to include additional
config files in my /etc/imapd.conf. The motivation is not because a ~60 line
imapd.conf needs abstraction to be manageable, but because includes allow
sensitive information such as plaintext MySQL passwords to reside in a
standalone file, allowing the rest of the config to be checked into a
relatively public CVS repository. The desired effect is to go from:

I committed and credited your patch to CVS with a couple of changes:

- we changed the option name from 'include' to '@include' just to differentiate directives from options

- we added loop detection -- a file can't be included recursively (or more than once for that matter)

--
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Reply via email to