logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

CVS: tmda/bin ChangeLog,1.69,1.70 tmda-filter,1.57,1.58: msg#00013

Subject: CVS: tmda/bin ChangeLog,1.69,1.70 tmda-filter,1.57,1.58
Update of /cvsroot/tmda/tmda/bin
In directory usw-pr-cvs1:/tmp/cvs-serv10794/bin

Modified Files:
        ChangeLog tmda-filter 
Log Message:
Introduce a new .tmdarc variable WHITELIST_AUTO_APPEND.  If turned on,
tmda-filter will append the confirming sender's e-mail address to
WHITELIST as long as it isn't there already.


Index: ChangeLog
===================================================================
RCS file: /cvsroot/tmda/tmda/bin/ChangeLog,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -r1.69 -r1.70
--- ChangeLog   2001/09/04 18:12:28     1.69
+++ ChangeLog   2001/09/05 23:47:31     1.70
@@ -1,3 +1,7 @@
+2001-09-05  Jason R. Mastaler  <jasonrm@xxxxxxxxxxxxxxxxxxxxxxxxxx>
+
+       * tmda-filter (locate_pending): Support WHITELIST_AUTO_APPEND.
+       
 2001-09-04  Jason R. Mastaler  <jasonrm@xxxxxxxxxxxxxxxxxxxxxxxxxx>
 
        * tmda-filter (bouncegen): Add `original_message_headers' as an

Index: tmda-filter
===================================================================
RCS file: /cvsroot/tmda/tmda/bin/tmda-filter,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -r1.57 -r1.58
--- tmda-filter 2001/09/04 18:12:28     1.57
+++ tmda-filter 2001/09/05 23:47:31     1.58
@@ -258,9 +258,14 @@
     pending_message_pathname = pendingdir + '/' + pending_message
     if os.path.exists(pending_message_pathname):
         logit("CONFIRM accept " + pending_message, time.time())
+        # Optionally append the envelope sender to the whitelist.
+        if Defaults.WHITELIST_AUTO_APPEND:
+            if Util.append_to_file(envelope_sender, Defaults.WHITELIST) != 0:
+                logit("APPEND whitelist " + envelope_sender, time.time())
+        # Optionally generate the confirmation acceptance notice.
         if Defaults.CONFIRM_ACCEPT_NOTIFY:
             bouncegen('accept')
-        # Reinject the original, now confirmed message.
+        # Reinject the original (now confirmed) message.
         inject_pending(pending_message_pathname,timestamp,pid)
     else:
         print "Sorry, your original message could not be located, please 
resend."




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