diff options
| author | Barry Warsaw | 2009-01-03 05:13:41 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-01-03 05:13:41 -0500 |
| commit | e5a96f14fb0fe8196e7b3ea0306c9f57f45c3110 (patch) | |
| tree | e456327300678100b6cc6dfa625c7bc31a9f34a4 /mailman/queue/archive.py | |
| parent | c0522afd1754c7a18c40c9ebaa6c2ef406929170 (diff) | |
| download | mailman-e5a96f14fb0fe8196e7b3ea0306c9f57f45c3110.tar.gz mailman-e5a96f14fb0fe8196e7b3ea0306c9f57f45c3110.tar.zst mailman-e5a96f14fb0fe8196e7b3ea0306c9f57f45c3110.zip | |
Diffstat (limited to 'mailman/queue/archive.py')
| -rw-r--r-- | mailman/queue/archive.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/mailman/queue/archive.py b/mailman/queue/archive.py index 69ec46f4b..c97bd86fb 100644 --- a/mailman/queue/archive.py +++ b/mailman/queue/archive.py @@ -24,15 +24,17 @@ __all__ = [ import os +import sys import time import logging from datetime import datetime from email.Utils import parsedate_tz, mktime_tz, formatdate +from lazr.config import as_boolean from locknix.lockfile import Lock from mailman import Defaults -from mailman.core.plugins import get_plugins +from mailman.config import config from mailman.queue import Runner log = logging.getLogger('mailman.error') @@ -80,11 +82,10 @@ class ArchiveRunner(Runner): msg['X-List-Received-Date'] = received_time # While a list archiving lock is acquired, archive the message. with Lock(os.path.join(mlist.data_path, 'archive.lck')): - for archive_factory in get_plugins('mailman.archiver'): - # A problem in one archiver should not prevent any other - # archiver from running. + for archiver in config.archivers: + # A problem in one archiver should not prevent other archivers + # from running. try: - archive = archive_factory() - archive.archive_message(mlist, msg) + archiver.archive_message(mlist, msg) except Exception: - log.exception('Broken archiver: %s' % archive.name) + log.exception('Broken archiver: %s' % archiver.name) |
