From 84d3b594a671377fbc6135ab37ad57c7f700e918 Mon Sep 17 00:00:00 2001 From: Giovane Date: Mon, 22 Feb 2016 15:12:27 -0300 Subject: Renames filtering method #608 w/ @deniscostadsc --- service/pixelated/adapter/mailstore/leap_mailstore.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'service/pixelated/adapter/mailstore/leap_mailstore.py') 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 -- cgit v1.2.3