summaryrefslogtreecommitdiff
path: root/service/pixelated
diff options
context:
space:
mode:
Diffstat (limited to 'service/pixelated')
-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)