Update of /cvsroot/tmda/tmda/bin
In directory usw-pr-cvs1:/tmp/cvs-serv13676/bin

Modified Files:
        ChangeLog tmda-inject 
Log Message:
Add a new variable MESSAGE_TAG_HEADER_STYLE which is used instead of
MESSAGE_FROM_STYLE when creating extra headers like Reply-To using the
`tag' action in your FILTER_OUTGOING.

This was done so you can use a different style for those headers than
is used for From and Resent-From.


Index: ChangeLog
===================================================================
RCS file: /cvsroot/tmda/tmda/bin/ChangeLog,v
retrieving revision 1.235
retrieving revision 1.236
diff -u -r1.235 -r1.236
--- ChangeLog   3 Oct 2002 04:51:34 -0000       1.235
+++ ChangeLog   4 Oct 2002 23:43:32 -0000       1.236
@@ -1,3 +1,9 @@
+2002-10-04  Jason R. Mastaler  <[EMAIL PROTECTED]>
+
+       * tmda-inject (inject_message): Use MESSAGE_TAG_HEADER_STYLE when
+       creating the extra headers (other than From/Resent-From) defined
+       using the `tag' action.
+
 2002-10-02  Jason R. Mastaler  <[EMAIL PROTECTED]>
 
        * tmda-inject (make_field): Reset $TMDA_TIMEOUT if no timeout

Index: tmda-inject
===================================================================
RCS file: /cvsroot/tmda/tmda/bin/tmda-inject,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -r1.70 -r1.71
--- tmda-inject 3 Oct 2002 04:51:34 -0000       1.70
+++ tmda-inject 4 Oct 2002 23:43:32 -0000       1.71
@@ -278,7 +278,8 @@
         (cookie_type, cookie_option) = actions[header]
         field = make_field(cookie_type, cookie_option, from_address, to_address)
         if cookie_type:
-            field = message_format(field, full_name, Defaults.MESSAGE_FROM_STYLE)
+            field = message_format(field, full_name,
+                                   Defaults.MESSAGE_TAG_HEADER_STYLE)
         nice_header = string.capwords(header.replace('-', ' ')).replace(' ', '-')
         nice_headers.append((nice_header, field))
     if nice_headers:

_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs

Reply via email to