From e10893d493d3b6c38f1336e82c5cc0f0a2b5c053 Mon Sep 17 00:00:00 2001 From: Bruno Wagner Goncalves Date: Thu, 25 Sep 2014 19:33:00 -0300 Subject: Removed pdbs and fixed draft saving --- service/pixelated/adapter/pixelated_mail.py | 2 +- service/pixelated/adapter/soledad_querier.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'service/pixelated') diff --git a/service/pixelated/adapter/pixelated_mail.py b/service/pixelated/adapter/pixelated_mail.py index c1b7f30c..d1b6bf36 100644 --- a/service/pixelated/adapter/pixelated_mail.py +++ b/service/pixelated/adapter/pixelated_mail.py @@ -51,7 +51,7 @@ class InputMail: @staticmethod def from_dict(mail_dict): input_mail = InputMail() - input_mail.headers = {key.capitalize: value for key, value in mail_dict['header'].items()} + input_mail.headers = {key.capitalize(): value for key, value in mail_dict['header'].items()} input_mail.headers['Date'] = pixelated.support.date.iso_now() input_mail.body = mail_dict['body'] input_mail.tags = set(mail_dict.get('tags', [])) diff --git a/service/pixelated/adapter/soledad_querier.py b/service/pixelated/adapter/soledad_querier.py index c7a9200c..16196e2a 100644 --- a/service/pixelated/adapter/soledad_querier.py +++ b/service/pixelated/adapter/soledad_querier.py @@ -18,14 +18,12 @@ class SoledadQuerier: def all_mails(self): fdocs_chash = [(fdoc, fdoc.content['chash']) for fdoc in self.soledad.get_from_index('by-type', 'flags')] - import pdb;pdb.set_trace() if len(fdocs_chash) == 0: return [] return self._build_mails_from_fdocs(fdocs_chash) def all_mails_by_mailbox(self, mailbox_name): fdocs_chash = [(fdoc, fdoc.content['chash']) for fdoc in self.soledad.get_from_index('by-type-and-mbox', 'flags', mailbox_name)] - import pdb;pdb.set_trace() if len(fdocs_chash) == 0: return [] return self._build_mails_from_fdocs(fdocs_chash) -- cgit v1.2.3