summaryrefslogtreecommitdiff
path: root/src/mailman/pipeline/scrubber.py
diff options
context:
space:
mode:
authorBarry Warsaw2009-03-10 00:06:16 -0400
committerBarry Warsaw2009-03-10 00:06:16 -0400
commitd820ece5e8f78def60438857eec48514a4cd905d (patch)
tree4315252eb32681a38cf19c30bf95ea4cb36eaf75 /src/mailman/pipeline/scrubber.py
parentdc18eb714de0f71535c259cc04226015813e8a0e (diff)
downloadmailman-d820ece5e8f78def60438857eec48514a4cd905d.tar.gz
mailman-d820ece5e8f78def60438857eec48514a4cd905d.tar.zst
mailman-d820ece5e8f78def60438857eec48514a4cd905d.zip
Diffstat (limited to 'src/mailman/pipeline/scrubber.py')
-rw-r--r--src/mailman/pipeline/scrubber.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mailman/pipeline/scrubber.py b/src/mailman/pipeline/scrubber.py
index 1148c6518..115bc77d1 100644
--- a/src/mailman/pipeline/scrubber.py
+++ b/src/mailman/pipeline/scrubber.py
@@ -27,6 +27,7 @@ __all__ = [
import os
import re
+import sys
import time
import errno
import hashlib
@@ -45,7 +46,6 @@ from zope.interface import implements
from mailman.Utils import oneline, websafe
from mailman.config import config
from mailman.core.errors import DiscardMessage
-from mailman.core.plugins import get_plugin
from mailman.i18n import _
from mailman.interfaces.handler import IHandler
from mailman.utilities.filesystem import makedirs
@@ -486,7 +486,10 @@ def save_attachment(mlist, msg, dir, filter_html=True):
fp.write(decodedpayload)
fp.close()
# Now calculate the url to the list's archive.
- baseurl = get_plugin('mailman.scrubber').list_url(mlist)
+ scrubber_path = config.scrubber.archive_scrubber
+ package_name, module_name = scrubber_path.rsplit('.', 1)
+ __import__(package_name)
+ baseurl = getattr(sys.modules[package_name], module_name).list_url(mlist)
if not baseurl.endswith('/'):
baseurl += '/'
# Trailing space will definitely be a problem with format=flowed.