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