summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Wagner Goncalves <bwagner@thoughtworks.com>2014-09-25 19:33:00 -0300
committerBruno Wagner Goncalves <bwagner@thoughtworks.com>2014-09-25 19:33:00 -0300
commite10893d493d3b6c38f1336e82c5cc0f0a2b5c053 (patch)
treec2e0fc3a1515b7b5f486b4fd0cc0cc3c34010523
parent4eaa393b78f956923f4932b60f2c819acba491de (diff)
Removed pdbs and fixed draft saving
-rw-r--r--service/pixelated/adapter/pixelated_mail.py2
-rw-r--r--service/pixelated/adapter/soledad_querier.py2
2 files changed, 1 insertions, 3 deletions
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)