logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

CVS: tmda/bin ChangeLog,1.104,1.105 tmda-inject,1.33,1.34: msg#00045

Subject: CVS: tmda/bin ChangeLog,1.104,1.105 tmda-inject,1.33,1.34
Update of /cvsroot/tmda/tmda/bin
In directory usw-pr-cvs1:/tmp/cvs-serv2617

Modified Files:
        ChangeLog tmda-inject 
Log Message:
Add an option to the `sender' action.  When sender=address, address is
used the create the sender cookie instead of the message recipient's
address.

This is useful for example when posting to a subscriber-only mailing
list to which you are subscribed with a sender address.  e.g, in
FILTER_OUTGOING:

# this posts with a sender address that doesn't match my subscribed
# address
to mailing-list@xxxxxxxxxx sender

# instead we use this to post with owner-mailing-list@xxxxxxxxxx's
# sender address, which does match
to mailing-list@xxxxxxxxxx sender=owner-mailing-list@xxxxxxxxxx

Previously, you would have needed to use `ext' or `exp' to accomplish
this less elegantly.


Index: ChangeLog
===================================================================
RCS file: /cvsroot/tmda/tmda/bin/ChangeLog,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -r1.104 -r1.105
--- ChangeLog   2001/11/16 17:57:01     1.104
+++ ChangeLog   2001/11/17 01:55:03     1.105
@@ -7,6 +7,10 @@
        it's a bounce and we tag only the envelope sender and
        Resent-From:.  Otherwise, we tag the envelope sender and From:.
 
+       (inject_message): Give the sender action an option.  When
+       sender=address, address is used to create the sender cookie rather
+       than the message recipient.
+
 2001-11-15  Jason R. Mastaler  <jasonrm@xxxxxxxxxxxxxxxxxxxxxxxxxx>
 
        * tmda-inject (inject_message): When checking for bare=append,

Index: tmda-inject
===================================================================
RCS file: /cvsroot/tmda/tmda/bin/tmda-inject,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- tmda-inject 2001/11/16 17:57:01     1.33
+++ tmda-inject 2001/11/17 01:55:03     1.34
@@ -105,8 +105,12 @@
         envelope_sender_address.append(Cookie.make_dated_address(from_address))
     elif cookie_type == 'sender':
         # Send a message with a tagged (sender) address
+        if cookie_option:               # base sender cookie on this address
+            sender_cookie_address = cookie_option
+        else:
+            sender_cookie_address = to_address
         envelope_sender_address.append(Cookie.make_sender_address
-                                       (from_address, to_address))
+                                       (from_address, sender_cookie_address))
     elif cookie_type in ('as','exp','explicit') and cookie_option:
         # Send a message with an explicitly defined address.
         envelope_sender_address.append(cookie_option)

_______________________________________________
tmda-cvs mailing list
http://libertine.org/lists/listinfo/tmda-cvs



<Prev in Thread] Current Thread [Next in Thread>