summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter/services/mailbox.py
diff options
context:
space:
mode:
Diffstat (limited to 'service/pixelated/adapter/services/mailbox.py')
-rw-r--r--service/pixelated/adapter/services/mailbox.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/service/pixelated/adapter/services/mailbox.py b/service/pixelated/adapter/services/mailbox.py
index 508dec31..40d9cb8e 100644
--- a/service/pixelated/adapter/services/mailbox.py
+++ b/service/pixelated/adapter/services/mailbox.py
@@ -22,19 +22,6 @@ class Mailbox:
self.mailbox_tag = mailbox_name.lower()
self.querier = querier
- def mails(self):
- _mails = self.querier.all_mails_by_mailbox(self.mailbox_name)
-
- result = []
- for mail in _mails:
- result.append(mail)
- return result
-
- def mails_by_tags(self, tags):
- if 'all' in tags or self.mailbox_tag in tags:
- return self.mails()
- return [mail for mail in self.mails() if len(mail.tags.intersection(tags)) > 0]
-
def mail(self, mail_id):
return self.querier.mail(mail_id)