summaryrefslogtreecommitdiff
path: root/Mailman/Handlers/Scrubber.py
diff options
context:
space:
mode:
authorBarry Warsaw2008-01-13 16:17:38 -0500
committerBarry Warsaw2008-01-13 16:17:38 -0500
commit0d0c030d50e4dbd11f33ccddb96cf13fd3470cd2 (patch)
tree4e182668a895beabcb35a7659c37ac2fb04ca5bf /Mailman/Handlers/Scrubber.py
parent90355248db6f6619148abb2a9137c3a564345729 (diff)
downloadmailman-0d0c030d50e4dbd11f33ccddb96cf13fd3470cd2.tar.gz
mailman-0d0c030d50e4dbd11f33ccddb96cf13fd3470cd2.tar.zst
mailman-0d0c030d50e4dbd11f33ccddb96cf13fd3470cd2.zip
Diffstat (limited to 'Mailman/Handlers/Scrubber.py')
-rw-r--r--Mailman/Handlers/Scrubber.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/Mailman/Handlers/Scrubber.py b/Mailman/Handlers/Scrubber.py
index 6946de7f4..e5bb13778 100644
--- a/Mailman/Handlers/Scrubber.py
+++ b/Mailman/Handlers/Scrubber.py
@@ -35,7 +35,7 @@ from mimetypes import guess_all_extensions
from Mailman import Utils
from Mailman.Errors import DiscardMessage
-from Mailman.app.archiving import get_base_archive_url
+from Mailman.app.archiving import get_archiver
from Mailman.configuration import config
from Mailman.i18n import _
@@ -490,10 +490,9 @@ def save_attachment(mlist, msg, dir, filter_html=True):
fp = open(path, 'w')
fp.write(decodedpayload)
fp.close()
- # Now calculate the url
- baseurl = get_base_archive_url(mlist)
- # Private archives will likely have a trailing slash. Normalize.
- if baseurl[-1] <> '/':
+ # Now calculate the url to the list's archive.
+ baseurl = get_archiver().get_list_url(mlist)
+ if not baseurl.endswith('/'):
baseurl += '/'
# Trailing space will definitely be a problem with format=flowed.
# Bracket the URL instead.