Configuration suggestion...

Julian Field MailScanner at ecs.soton.ac.uk
Tue Aug 11 12:25:44 IST 2009



On 11/08/2009 12:15, Martin Hepworth wrote:
> Jules
>
> so If I have multiple config files with the same option set, which one 
> 'wins'? Is this some by ascii codes and the highest one will win?
I'll make it so it sorts *.conf by ascii sequence, that sounds the most 
sensible as it's the same as "ls" order.
Thanks for raising that one. It may be what it's doing by default 
anyway, but I'll enforce it.

Jules.
>
> -- 
> Martin Hepworth
> Oxford, UK
> 2009/8/11 Julian Field <MailScanner at ecs.soton.ac.uk 
> <mailto:MailScanner at ecs.soton.ac.uk>>
>
>
>
>     On 11/08/2009 10:13, Glenn Steen wrote:
>
>         2009/8/11 shuttlebox<shuttlebox at gmail.com
>         <mailto:shuttlebox at gmail.com>>:
>
>             On Tue, Aug 11, 2009 at 10:13 AM, Julian
>             Field<MailScanner at ecs.soton.ac.uk
>             <mailto:MailScanner at ecs.soton.ac.uk>>  wrote:
>
>                 Adding "include" files means that I need to allow
>                 settings to be
>                 over-written by later instances of the same setting,
>                 and I need to keep
>                 track of a whole stack of nested "include" files.
>                 Currently it will complain
>                 if it sees the same setting twice, but I would have to
>                 disable that, which
>                 I'm not keen on doing. And in the nested "include"
>                 file handling, I've got
>                 to do loop detection and other nasties so you can't
>                 trivially break it.
>
>             You could use MailScanner.conf as the master and the only
>             one allowed
>             to include other files. Then just let settings override
>             each other.
>             That's simple and good enough in my opinion, I doubt
>             anyone _really_
>             needs nesting.
>
>
>         I rather doubt anyone *really* needs includes either. The upgrade
>         process is very fast and simple IMO, and this isn't one of the
>         trickier parts.
>         I further wouldn't want the upgrade script to run
>         automatically, but
>         that might be just me:-)
>
>     Well, you now have fully nested "include" lines, which also
>     support wildcards. A sample valid line is
>        include /etc/MailScanner/conf/*.conf
>     Included files can include arbitrary numbers of other include
>     files, and so on.
>
>     Even the upgrade_MailScanner_conf file should cope with the new
>     syntax, and will just upgrade the MailScanner.conf file it is
>     given on the command-line, it will not follow include paths.
>
>     4.78.8-1 is where it's all at :-)
>
>     Happier now? ;->
>
>
>     Jules
>
>     -- 
>     Julian Field MEng CITP CEng
>     www.MailScanner.info <http://www.MailScanner.info>
>     Buy the MailScanner book at www.MailScanner.info/store
>     <http://www.MailScanner.info/store>
>
>     Need help customising MailScanner?
>     Contact me!
>     Need help fixing or optimising your systems?
>     Contact me!
>     Need help getting you started solving new requirements from your boss?
>     Contact me!
>
>     PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
>     Follow me at twitter.com/JulesFM <http://twitter.com/JulesFM> and
>     twitter.com/MailScanner <http://twitter.com/MailScanner>
>
>
>     -- 
>     This message has been scanned for viruses and
>     dangerous content by MailScanner, and is
>     believed to be clean.
>
>     -- 
>     MailScanner mailing list
>     mailscanner at lists.mailscanner.info
>     <mailto:mailscanner at lists.mailscanner.info>
>     http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
>     Before posting, read http://wiki.mailscanner.info/posting
>
>     Support MailScanner development - buy the book off the website!
>
>
>
>
>

Jules

-- 
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at twitter.com/JulesFM and twitter.com/MailScanner


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list