Update of /cvsroot/tmda/tmda/htdocs
In directory usw-pr-cvs1:/tmp/cvs-serv22628/htdocs
Modified Files:
config-vars.ht config-vars.html
Log Message:
New feature.
TEMPLATE_DIR_MATCH_SENDER provides a way to further specialize the
template selection process.
When enabled, TMDA looks for a subdirectory of TEMPLATE_DIR that
matches the sender address, and then increasingly general portions of
the domain part of the address.
For example, if mail arrives from [EMAIL PROTECTED], we'd look for
templates in these subdirectories under TEMPLATE_DIR, in this order:
[EMAIL PROTECTED]/
bar.baz.de/
baz.de/
de/
If no sender based templates are found, TEMPLATE_DIR and then the
default template locations are tried.
Index: config-vars.ht
===================================================================
RCS file: /cvsroot/tmda/tmda/htdocs/config-vars.ht,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- config-vars.ht 24 Oct 2002 20:36:17 -0000 1.5
+++ config-vars.ht 1 Nov 2002 22:53:08 -0000 1.6
@@ -175,22 +175,24 @@
</tr>
<tr>
<td><a href="#TEMPLATE_DIR">TEMPLATE_DIR</a></td>
-<td><a href="#TEMPLATE_EMAIL_HEADERS">TEMPLATE_EMAIL_HEADERS</a></td>
+<td><a href="#TEMPLATE_DIR_MATCH_SENDER">TEMPLATE_DIR_MATCH_SENDER</a></td>
</tr>
<tr>
+<td><a href="#TEMPLATE_EMAIL_HEADERS">TEMPLATE_EMAIL_HEADERS</a></td>
<td><a href="#TEMPLATE_ENCODED_HEADERS">TEMPLATE_ENCODED_HEADERS</a></td>
-<td><a href="#TERSE_SUMMARY_HEADERS">TERSE_SUMMARY_HEADERS</a></td>
</tr>
<tr>
+<td><a href="#TERSE_SUMMARY_HEADERS">TERSE_SUMMARY_HEADERS</a></td>
<td><a href="#TIMEOUT">TIMEOUT</a></td>
-<td><a href="#USERNAME">USERNAME</a></td>
</tr>
<tr>
+<td><a href="#USERNAME">USERNAME</a></td>
<td><a href="#USEVIRTUALDOMAINS">USEVIRTUALDOMAINS</a></td>
-<td><a href="#VIRTUALDOMAINS">VIRTUALDOMAINS</a></td>
</tr>
<tr>
+<td><a href="#VIRTUALDOMAINS">VIRTUALDOMAINS</a></td>
<td><a href="#X_TMDA_IN_SUBJECT">X_TMDA_IN_SUBJECT</a></td>
+</tr>
</table>
<dl>
@@ -1208,6 +1210,33 @@
<code>TEMPLATE_DIR = "/full/path/to/templates/"</code>
<br><br>
No default.
+<dt><hr>
+<a name="TEMPLATE_DIR_MATCH_SENDER"><h4>TEMPLATE_DIR_MATCH_SENDER</h4></a>
+<dd>
+Set this variable to 1 if you want to use sender specific template
+directory matching. Make sure you also have TEMPLATE_DIR set.
+<br><br>
+With this feature enabled, TMDA will look for templates in a
+subdirectory of TEMPLATE_DIR that matches the sender address, and
+then increasingly general portions of the domain part of the address.
+<br><br>
+For example, if mail arrives from [EMAIL PROTECTED], TMDA will look for
+templates in these subdirectories of TEMPLATE_DIR, in this order:
+<br><br>
+<blockquote>
+ [EMAIL PROTECTED]/
+<br><br>
+ bar.baz.de/
+<br><br>
+ baz.de/
+<br><br>
+ de/
+</blockquote>
+<br>
+If no sender based templates can be found, TEMPLATE_DIR itself and
+then the default locations will be tried.
+<br><br>
+Default is 0 (turned off)
<dt><hr>
<a name="TEMPLATE_EMAIL_HEADERS"><h4>TEMPLATE_EMAIL_HEADERS</h4></a>
<dd>
Index: config-vars.html
===================================================================
RCS file: /cvsroot/tmda/tmda/htdocs/config-vars.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- config-vars.html 25 Oct 2002 02:01:46 -0000 1.7
+++ config-vars.html 1 Nov 2002 22:53:08 -0000 1.8
@@ -1,6 +1,6 @@
<HTML>
<!-- THIS PAGE IS AUTOMATICALLY GENERATED. DO NOT EDIT. -->
-<!-- Thu Oct 24 19:59:44 2002 -->
+<!-- Fri Nov 1 15:46:08 2002 -->
<!-- USING HT2HTML 1.2 -->
<!-- SEE http://barry.wooz.org/software/ht2html -->
<!-- User-specified headers:
@@ -337,22 +337,24 @@
</tr>
<tr>
<td><a href="#TEMPLATE_DIR">TEMPLATE_DIR</a></td>
-<td><a href="#TEMPLATE_EMAIL_HEADERS">TEMPLATE_EMAIL_HEADERS</a></td>
+<td><a href="#TEMPLATE_DIR_MATCH_SENDER">TEMPLATE_DIR_MATCH_SENDER</a></td>
</tr>
<tr>
+<td><a href="#TEMPLATE_EMAIL_HEADERS">TEMPLATE_EMAIL_HEADERS</a></td>
<td><a href="#TEMPLATE_ENCODED_HEADERS">TEMPLATE_ENCODED_HEADERS</a></td>
-<td><a href="#TERSE_SUMMARY_HEADERS">TERSE_SUMMARY_HEADERS</a></td>
</tr>
<tr>
+<td><a href="#TERSE_SUMMARY_HEADERS">TERSE_SUMMARY_HEADERS</a></td>
<td><a href="#TIMEOUT">TIMEOUT</a></td>
-<td><a href="#USERNAME">USERNAME</a></td>
</tr>
<tr>
+<td><a href="#USERNAME">USERNAME</a></td>
<td><a href="#USEVIRTUALDOMAINS">USEVIRTUALDOMAINS</a></td>
-<td><a href="#VIRTUALDOMAINS">VIRTUALDOMAINS</a></td>
</tr>
<tr>
+<td><a href="#VIRTUALDOMAINS">VIRTUALDOMAINS</a></td>
<td><a href="#X_TMDA_IN_SUBJECT">X_TMDA_IN_SUBJECT</a></td>
+</tr>
</table>
<dl>
@@ -1370,6 +1372,33 @@
<code>TEMPLATE_DIR = "/full/path/to/templates/"</code>
<br><br>
No default.
+<dt><hr>
+<a name="TEMPLATE_DIR_MATCH_SENDER"><h4>TEMPLATE_DIR_MATCH_SENDER</h4></a>
+<dd>
+Set this variable to 1 if you want to use sender specific template
+directory matching. Make sure you also have TEMPLATE_DIR set.
+<br><br>
+With this feature enabled, TMDA will look for templates in a
+subdirectory of TEMPLATE_DIR that matches the sender address, and
+then increasingly general portions of the domain part of the address.
+<br><br>
+For example, if mail arrives from [EMAIL PROTECTED], TMDA will look for
+templates in these subdirectories of TEMPLATE_DIR, in this order:
+<br><br>
+<blockquote>
+ [EMAIL PROTECTED]/
+<br><br>
+ bar.baz.de/
+<br><br>
+ baz.de/
+<br><br>
+ de/
+</blockquote>
+<br>
+If no sender based templates can be found, TEMPLATE_DIR itself and
+then the default locations will be tried.
+<br><br>
+Default is 0 (turned off)
<dt><hr>
<a name="TEMPLATE_EMAIL_HEADERS"><h4>TEMPLATE_EMAIL_HEADERS</h4></a>
<dd>
_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs