I found the "all files are processed" thing, similar to Duncan, just two days ago. I was not aware that template-begin and template-end were processed separately, though. That makes a big difference, as I was thinking it would be necessary to insert files in between those two names, such as template-custom01, template-custom02, etc. Nice to know that I don't have to worry about that one.
Also, how is the templates-custom actually handled. If a template-custom directory exists, then only the files in that directory are processed? Or are those files in addition to the normal templates? For example, what happens when:
/etc/e-smith/templates/etc/hosts/template-begin
/etc/e-smith/templates/etc/hosts/template-end
/etc/e-smith/templates-custom/etc/hosts/custom1
/etc/e-smith/templates-custom/etc/hosts/custom2
Which directory is processed? Both? Only custom? What is the impact of no begin/end in the templates-custom branch?
I assume the following scenario:
/etc/e-smith/templates/var/qmail/control/smtproutes
/etc/e-smith/templates-custom/var/qmail/control/smtproutes
would result in only the templates-custom version being expanded, right?
Is this also possible, then:
/etc/e-smith/templates/var/qmail/control/smtproutes/template-begin
/etc/e-smith/templates/var/qmail/control/smtproutes/template-end
Cool product. Wish I knew Perl, though. The nuts and bolts of some of the code might make a little more sense. But I'm getting there!