[Mailman-Users] Adding backup to multi-server config

Stephen J. Turnbull stephen at xemacs.org
Sun Dec 23 22:17:37 CET 2012


Mark Sapiro writes:

Python is indentation-sensitive.  Do you really mean a dedent there
relative to the surrounding stanza?  It doesn't seem to be an artifact
of TABs or something like that.

 > Find the section in the definition of the files() method that looks like
 > 
 >             if ext <> extension:
 >                 continue
 >             when, digest = filebase.split('+')
 >             # Throw out any files which don't match our bitrange.  BAW: test
 >             # performance and end-cases of this algorithm.  MAS: both
 >             # comparisons need to be <= to get complete range.
 >             if lower is None or (lower <= long(digest, 16) <= upper):
 >                 key = float(when)
 >                 while times.has_key(key):
 >                     key += DELTA
 >                 times[key] = filebase
 > 
 > and add the following
 > 
 >         now = time.time()
 >         age = now - float(when)
 >         # Only process defined 'old' entries.
 >         if not (
 >                 hasattr(mm_cfg, 'QRUNNER_MESSAGE_IS_OLD_DELAY') and
 >                 mm_cfg.QRUNNER_MESSAGE_IS_OLD_DELAY and
 >                 age > mm_cfg.QRUNNER_MESSAGE_IS_OLD_DELAY):
 >             continue
 > 
 > between
 > 
 >             when, digest = filebase.split('+')
 > 
 > and
 > 
 >             # Throw out any files which don't match our bitrange.  BAW: test


More information about the Mailman-Users mailing list