Update of /cvsroot/tmda/tmda/TMDA
In directory sc8-pr-cvs1:/tmp/cvs-serv14871/TMDA
Modified Files:
ChangeLog Defaults.py
Log Message:
Pending queue reorganization. Remove use of DELIVERED_CACHE to store
the status of delivered messages.
I wasn't happy with the fact that only tmda-pending could distinguish
between "still pending" messages and those which were already
delivered (either by confirmation or manual release).
This was also the source of the FAQ about why the message is still in
pending even though it's already been delivered.
Drew Raines suggested adopting the Maildir info flag approach, where a
status indicator is appended to the filename once it's delivered. e.g,
1036836637.29343.msg (indicates a "still pending" message)
1036836637.29343.msg:3,C (indicates delivered by sender confirmation)
1036836637.29343.msg:3,R (indicates delivered by manual release)
We utilize the other numerical prefix ``3'' as ``2'' seems to be
MUA-specific. ``3'' could eventually be reserved for
challenge-response systems.
See http://cr.yp.to/proto/maildir.html for more on this format.
This shouldn't change tmda-pending behavior, but would allow homegrown
tools (as well as users poking through pending) to grok delivery status.
Index: ChangeLog
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/ChangeLog,v
retrieving revision 1.241
retrieving revision 1.242
diff -u -r1.241 -r1.242
--- ChangeLog 13 Nov 2002 01:56:53 -0000 1.241
+++ ChangeLog 21 Nov 2002 23:57:39 -0000 1.242
@@ -1,3 +1,7 @@
+2002-11-21 Jason R. Mastaler <[EMAIL PROTECTED]>
+
+ * Defaults.py: Removed DELIVERED_CACHE and DELIVERED_CACHE_LEN.
+
2002-11-12 Jason R. Mastaler <[EMAIL PROTECTED]>
* Util.py (confirm_append_address): New function.
Index: Defaults.py
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/Defaults.py,v
retrieving revision 1.154
retrieving revision 1.155
diff -u -r1.154 -r1.155
--- Defaults.py 14 Nov 2002 00:09:52 -0000 1.154
+++ Defaults.py 21 Nov 2002 23:57:40 -0000 1.155
@@ -987,28 +987,6 @@
if not vars().has_key('AUTORESPONSE_INCLUDE_SENDER_COPY'):
AUTORESPONSE_INCLUDE_SENDER_COPY = 2
-# DELIVERED_CACHE
-# Path to the cache file used to keep track of which messages have
-# already been delivered.
-#
-# Default is ~/.tmda/pending/.delivered_cache
-if not vars().has_key('DELIVERED_CACHE'):
- DELIVERED_CACHE = os.path.join(DATADIR, 'pending', '.delivered_cache')
-
-# DELIVERED_CACHE_LEN
-#
-# An integer which specifies the maximum number of entries held by
-# DELIVERED_CACHE.
-#
-# Make sure this value is larger than the number of messages normally
-# stored in your pending queue. The default value may not suffice if
-# you run a very high traffic TMDA, and/or have a long pending queue
-# purge interval.
-#
-# Default is 5000
-if not vars().has_key('DELIVERED_CACHE_LEN'):
- DELIVERED_CACHE_LEN = 5000
-
# PENDING_CACHE
# Path to the cache file used when tmda-pending is invoked with the
# --cache option.
_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs