summaryrefslogtreecommitdiff
path: root/mailman/pipeline/scrubber.py
diff options
context:
space:
mode:
Diffstat (limited to 'mailman/pipeline/scrubber.py')
-rw-r--r--mailman/pipeline/scrubber.py20
1 files changed, 1 insertions, 19 deletions
diff --git a/mailman/pipeline/scrubber.py b/mailman/pipeline/scrubber.py
index fa9c8577f..3ee68612f 100644
--- a/mailman/pipeline/scrubber.py
+++ b/mailman/pipeline/scrubber.py
@@ -48,6 +48,7 @@ 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
# Path characters for common platforms
@@ -378,25 +379,6 @@ URL: $url
-def makedirs(dir):
- # Create all the directories to store this attachment in and try to make
- # sure that the permissions of the directories are set correctly.
- try:
- os.makedirs(dir, 02775)
- except OSError, e:
- if e.errno == errno.EEXIST:
- return
- # Some systems such as FreeBSD ignore mkdir's mode, so walk the just
- # created directories and try to set the mode, ignoring any OSErrors that
- # occur here.
- for dirpath, dirnames, filenames in os.walk(dir):
- try:
- os.chmod(dirpath, 02775)
- except OSError:
- pass
-
-
-
def save_attachment(mlist, msg, dir, filter_html=True):
fsdir = os.path.join(config.PRIVATE_ARCHIVE_FILE_DIR,
mlist.fqdn_listname, dir)