summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter/mailstore/leap_mailstore.py
diff options
context:
space:
mode:
authorGiovane <giovaneliberato@gmail.com>2016-02-22 15:12:27 -0300
committerGiovane <giovaneliberato@gmail.com>2016-02-22 15:12:27 -0300
commit84d3b594a671377fbc6135ab37ad57c7f700e918 (patch)
tree0a22f02a4f6ef13a068b6978671a773e1fda857b /service/pixelated/adapter/mailstore/leap_mailstore.py
parentefedbbe527f03e53254551aca7823c00fcd9c12f (diff)
Renames filtering method #608 w/ @deniscostadsc
Diffstat (limited to 'service/pixelated/adapter/mailstore/leap_mailstore.py')
-rw-r--r--service/pixelated/adapter/mailstore/leap_mailstore.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/pixelated/adapter/mailstore/leap_mailstore.py b/service/pixelated/adapter/mailstore/leap_mailstore.py
index 72a16dfa..975bcc5c 100644
--- a/service/pixelated/adapter/mailstore/leap_mailstore.py
+++ b/service/pixelated/adapter/mailstore/leap_mailstore.py
@@ -325,12 +325,12 @@ class LeapMailStore(MailStore):
mbox_uuid = message.get_wrapper().fdoc.mbox_uuid
mbox_name = yield self._mailbox_name_from_uuid(mbox_uuid)
attachments = self._extract_attachment_info_from(message)
- attachments = self._filter_keys(attachments)
+ attachments = self._filter_public_keys_from_attachments(attachments)
mail = LeapMail(mail_id, mbox_name, message.get_wrapper().hdoc.headers, set(message.get_tags()), set(message.get_flags()), body=body, attachments=attachments) # TODO assert flags are passed on
defer.returnValue(mail)
- def _filter_keys(self, attachments):
+ def _filter_public_keys_from_attachments(self, attachments):
return filter(lambda attachment: attachment.ctype != MIME_PGP_KEY, attachments)
@defer.inlineCallbacks