diff options
| author | Barry Warsaw | 2009-01-01 17:58:39 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-01-01 17:58:39 -0500 |
| commit | 1c285f110d8e98597453c6b4b69ea01163033547 (patch) | |
| tree | 00c7ec16711b2073e40f593658f652726a9d4231 /mailman/Mailbox.py | |
| parent | 12513c7d0fc1f5d2a1aabda349637309f6e8300b (diff) | |
| parent | 600ddb503a391d70230d96ee91a631888d11b35a (diff) | |
| download | mailman-1c285f110d8e98597453c6b4b69ea01163033547.tar.gz mailman-1c285f110d8e98597453c6b4b69ea01163033547.tar.zst mailman-1c285f110d8e98597453c6b4b69ea01163033547.zip | |
Two major structural conversions.
* Use zc.buildout and zc.testing frameworks for building and testing Mailman.
* Use lazr.config as the configuration system, though this conversion is not
yet complete.
Also: move a bunch of old bin scripts to the attic.
Diffstat (limited to 'mailman/Mailbox.py')
| -rw-r--r-- | mailman/Mailbox.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/mailman/Mailbox.py b/mailman/Mailbox.py index afbfb8166..14fed7402 100644 --- a/mailman/Mailbox.py +++ b/mailman/Mailbox.py @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2008 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2009 by the Free Software Foundation, Inc. # # This file is part of GNU Mailman. # @@ -26,8 +26,8 @@ from email.Errors import MessageParseError from email.Generator import Generator from email.Parser import Parser +from mailman import Defaults from mailman.Message import Message -from mailman.configuration import config @@ -91,9 +91,10 @@ class ArchiverMailbox(Mailbox): # scrub() method, giving the scrubber module a chance to do its thing # before the message is archived. def __init__(self, fp, mlist): - if config.ARCHIVE_SCRUBBER: - __import__(config.ARCHIVE_SCRUBBER) - self._scrubber = sys.modules[config.ARCHIVE_SCRUBBER].process + scrubber_module = Defaults.ARCHIVE_SCRUBBER + if scrubber_module: + __import__(scrubber_module) + self._scrubber = sys.modules[scrubber_module].process else: self._scrubber = None self._mlist = mlist |
