diff options
author | Duda Dornelles <dudassdornelles@gmail.com> | 2015-01-06 17:23:52 -0200 |
---|---|---|
committer | Pixpoa pairing <pixpoapairing@pixelated-project.org> | 2015-01-06 17:31:37 -0200 |
commit | 4d49a94e35c1a8aa6543cc4534f6e90293a500f0 (patch) | |
tree | b3a34b2f99d096136d9fce262b52eccc642c3154 /service/pixelated/adapter/services | |
parent | 0ff59644d8e804bcab928d184b31a5e6cdc2f6ed (diff) |
Getting rid of unused sqlcipher index updates, speeding up tests and app. Also, making the data tests folder a subfolder of soledad-test so that we can make soledad-test into a ramdisk to speed up tests
Diffstat (limited to 'service/pixelated/adapter/services')
-rw-r--r-- | service/pixelated/adapter/services/mail_service.py | 2 | ||||
-rw-r--r-- | service/pixelated/adapter/services/mailboxes.py | 12 |
2 files changed, 2 insertions, 12 deletions
diff --git a/service/pixelated/adapter/services/mail_service.py b/service/pixelated/adapter/services/mail_service.py index b828222b..3b70890b 100644 --- a/service/pixelated/adapter/services/mail_service.py +++ b/service/pixelated/adapter/services/mail_service.py @@ -39,7 +39,7 @@ class MailService: return mail def mail(self, mail_id): - return self.mailboxes.mail(mail_id) + return self.querier.mail(mail_id) def mail_exists(self, mail_id): return not(not(self.querier.get_header_by_chash(mail_id))) diff --git a/service/pixelated/adapter/services/mailboxes.py b/service/pixelated/adapter/services/mailboxes.py index 56304dd6..51d4add9 100644 --- a/service/pixelated/adapter/services/mailboxes.py +++ b/service/pixelated/adapter/services/mailboxes.py @@ -47,13 +47,6 @@ class Mailboxes(): def mailboxes(self): return [self._create_or_get(leap_mailbox_name) for leap_mailbox_name in self.account.mailboxes] - def mails_by_tag(self, query_tags): - mails = [] - for mailbox in self.mailboxes(): - mails.extend(mailbox.mails_by_tags(query_tags)) - - return mails - def move_to_trash(self, mail_id): mail = self.querier.mail(mail_id) mail.remove_all_tags() @@ -62,7 +55,4 @@ class Mailboxes(): return mail def mail(self, mail_id): - for mailbox in self.mailboxes(): - mail = mailbox.mail(mail_id) - if mail: - return mail + return self.querier.mail(mail_id) |