Update of /cvsroot/tmda/tmda/TMDA
In directory sc8-pr-cvs1:/tmp/cvs-serv25201/TMDA

Modified Files:
        ChangeLog Defaults.py 
Log Message:
Add CGI_URL for things like constructing the message release
URL when using tmda-cgi.

If this variable is set, tmda-rfilter constructs a release URL
for the message and stores it in `confirm_accept_url'.

Then the user can imbed the URL in her template by adding something
like this to confirm_request.txt:

  To release your message, click on %(confirm_accept_url)s

An example URL is:

http://www.domain.tld/tmda.cgi?684.1038959858.48460.c7a2e8

The first integer is the euid which is necessary for the cgi to know
which pending directory to look in, which configuration file to load,
etc.

The next two portions identify the message-id on disk, and the last is
the HMAC. These three are the same as the "cookie" included within the
confirmation e-mail address.


Index: ChangeLog
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/ChangeLog,v
retrieving revision 1.244
retrieving revision 1.245
diff -u -r1.244 -r1.245
--- ChangeLog   3 Dec 2002 00:43:43 -0000       1.244
+++ ChangeLog   6 Dec 2002 23:48:12 -0000       1.245
@@ -1,10 +1,14 @@
+2002-12-06  Jason R. Mastaler  <[EMAIL PROTECTED]>
+
+       * Defaults.py (CGI_URL): New variable.
+
 2002-12-02  Jason R. Mastaler  <[EMAIL PROTECTED]>
 
        * Defaults.py (GLOBAL_TMDARC): Don't skip if there is an error.
        
 2002-11-25  David Guerizec  <[EMAIL PROTECTED]>
 
-    * Pending.py: new module
+       * Pending.py: new module
 
 2002-11-21  Jason R. Mastaler  <[EMAIL PROTECTED]>
 

Index: Defaults.py
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/Defaults.py,v
retrieving revision 1.166
retrieving revision 1.167
diff -u -r1.166 -r1.167
--- Defaults.py 5 Dec 2002 18:45:18 -0000       1.166
+++ Defaults.py 6 Dec 2002 23:48:12 -0000       1.167
@@ -423,6 +423,16 @@
 # Default is 0 (disabled)
 if not vars().has_key('CGI_ACTIVE'):
     CGI_ACTIVE = 0
+
+# CGI_URL
+# Absolute URL of your tmda-cgi installation.
+#
+# Example:
+# CGI_URL = "http://www.domain.dom/cgi-bin/tmda.cgi";
+#
+# No default.
+if CGI_ACTIVE and not vars().has_key('CGI_URL'):
+    CGI_URL = None
     
 # CGI_CLEANUP_ODDS
 # Chance of cleaning up old sessions when a session object is

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

Reply via email to