diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2012-10-26 12:38:52 +0200 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2012-10-26 12:38:52 +0200 |
commit | cae57f7d5951e91f2f781f37e095acd88f999d89 (patch) | |
tree | 11c61821222a38447773ead32fe151d7dde6ff06 /kittystore/scrub.py | |
parent | 3c98fc52c8238a5c2c6299b499ca5f413c533476 (diff) | |
download | kittystore-cae57f7d5951e91f2f781f37e095acd88f999d89.tar.gz kittystore-cae57f7d5951e91f2f781f37e095acd88f999d89.tar.xz kittystore-cae57f7d5951e91f2f781f37e095acd88f999d89.zip |
Pylint pass
Diffstat (limited to 'kittystore/scrub.py')
-rw-r--r-- | kittystore/scrub.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/kittystore/scrub.py b/kittystore/scrub.py index 627668c..c3c9f52 100644 --- a/kittystore/scrub.py +++ b/kittystore/scrub.py @@ -24,12 +24,8 @@ from types import IntType from mimetypes import guess_all_extensions from email.utils import unquote -from email.charset import Charset -from mailman.utilities.string import websafe, oneline -# TODO: don't do translations here, the system locale has no meaning to the -# web user -from mailman.core.i18n import _ +from mailman.utilities.string import oneline # Path characters for common platforms pre = re.compile(r'[/\\:]') @@ -94,7 +90,7 @@ class Scrubber(object): def scrub(self): sanitize = 1 # TODO: implement other options - outer = True + #outer = True # Now walk over all subparts of this message and scrub out various types for part_num, part in enumerate(self.msg.walk()): ctype = part.get_content_type() @@ -164,7 +160,7 @@ class Scrubber(object): if payload is None: continue self.save_attachment(part, part_num) - outer = False + #outer = False # We still have to sanitize multipart messages to flat text because # Pipermail can't handle messages with list payloads. This is a kludge; # def (n) clever hack ;). |