summaryrefslogtreecommitdiff
path: root/mailman/pipeline/scrubber.py
diff options
context:
space:
mode:
authorBarry Warsaw2008-03-30 00:06:07 -0400
committerBarry Warsaw2008-03-30 00:06:07 -0400
commit7f440dc39489b32257c35f15ee6f27d90a197cf5 (patch)
treea4aaec013ee63253b78cfeb3518e78b1df424a91 /mailman/pipeline/scrubber.py
parenteecf4b29f2642f30b22ee978fa50d8713bec1a48 (diff)
downloadmailman-7f440dc39489b32257c35f15ee6f27d90a197cf5.tar.gz
mailman-7f440dc39489b32257c35f15ee6f27d90a197cf5.tar.zst
mailman-7f440dc39489b32257c35f15ee6f27d90a197cf5.zip
More fixes to get the basic end-to-end delivery mechanisms working.
- Lots of Pipermail work just to get it to play nice with the new apis. - Fix ARCHIVE_SCRUBBER - Lots of changes to mailman.app.archiving, especially to provide an adapter from the new MailingList api to the one expected by Pipermail (e.g. archive_dir()). - Add a test of the basic pipermail archiver.
Diffstat (limited to 'mailman/pipeline/scrubber.py')
-rw-r--r--mailman/pipeline/scrubber.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mailman/pipeline/scrubber.py b/mailman/pipeline/scrubber.py
index 37a5c7873..394fe6322 100644
--- a/mailman/pipeline/scrubber.py
+++ b/mailman/pipeline/scrubber.py
@@ -40,7 +40,7 @@ from zope.interface import implements
from mailman import Utils
from mailman.Errors import DiscardMessage
-from mailman.app.archiving import get_archiver
+from mailman.app.archiving import get_primary_archiver
from mailman.configuration import config
from mailman.i18n import _
from mailman.interfaces import IHandler
@@ -497,7 +497,7 @@ 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_archiver().get_list_url(mlist)
+ baseurl = get_primary_archiver().get_list_url(mlist)
if not baseurl.endswith('/'):
baseurl += '/'
# Trailing space will definitely be a problem with format=flowed.