summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter/mailstore
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2015-09-02 17:10:05 -0300
committerVictor Shyba <victor.shyba@gmail.com>2015-09-02 17:10:05 -0300
commitd01d60d4d7e9b8bdc7d8741e2567e30c8d476c0b (patch)
tree368599a7be3d798981c873fa5c893a15bcd407fb /service/pixelated/adapter/mailstore
parent1999a0c396619694edefba7513cb488681c21d3b (diff)
Revert "[refactor] Move search mails into searchable_mailstore"
This reverts commit 97b50f5b886928c70edcbcea149ced10f7065f19.
Diffstat (limited to 'service/pixelated/adapter/mailstore')
-rw-r--r--service/pixelated/adapter/mailstore/searchable_mailstore.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/service/pixelated/adapter/mailstore/searchable_mailstore.py b/service/pixelated/adapter/mailstore/searchable_mailstore.py
index d53f13d7..0c5310eb 100644
--- a/service/pixelated/adapter/mailstore/searchable_mailstore.py
+++ b/service/pixelated/adapter/mailstore/searchable_mailstore.py
@@ -32,18 +32,6 @@ class SearchableMailStore(object): # implementes MailStore
setattr(cls, method_name, delegator)
@defer.inlineCallbacks
- def search_mails(self, query, window_size, page):
- mail_ids, total = self._search_engine.search(query, window_size, page)
-
- try:
- mails = yield self.get_mails(mail_ids)
- defer.returnValue((mails, total))
- except Exception, e:
- import traceback
- traceback.print_exc()
- raise
-
- @defer.inlineCallbacks
def add_mail(self, mailbox_name, mail):
stored_mail = yield self._delegate.add_mail(mailbox_name, mail)
self._search_engine.index_mail(stored_mail)