summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter/mailstore
diff options
context:
space:
mode:
authorFolker Bernitt <fbernitt@thoughtworks.com>2015-08-06 10:16:03 +0200
committerFolker Bernitt <fbernitt@thoughtworks.com>2015-08-11 17:00:32 +0200
commit5081bc601334a163c362d6a049cf13c837b0fc42 (patch)
tree3e389c8cb65c576a1b51746fd48b8f050dac9343 /service/pixelated/adapter/mailstore
parent8b38782075fab1410a5f45c79c2cc252ff3d84db (diff)
Implemented copy mail on indexing mails store.
Diffstat (limited to 'service/pixelated/adapter/mailstore')
-rw-r--r--service/pixelated/adapter/mailstore/searchable_mailstore.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/service/pixelated/adapter/mailstore/searchable_mailstore.py b/service/pixelated/adapter/mailstore/searchable_mailstore.py
index 7339bd18..264f41cc 100644
--- a/service/pixelated/adapter/mailstore/searchable_mailstore.py
+++ b/service/pixelated/adapter/mailstore/searchable_mailstore.py
@@ -54,6 +54,12 @@ class SearchableMailStore(object): # implementes MailStore
self._search_engine.index_mail(moved_mail)
defer.returnValue(moved_mail)
+ @defer.inlineCallbacks
+ def copy_mail_to_mailbox(self, mail_id, mailbox_name):
+ copied_mail = yield self._delegate.copy_mail_to_mailbox(mail_id, mailbox_name)
+ self._search_engine.index_mail(copied_mail)
+ defer.returnValue(copied_mail)
+
def __getattr__(self, name):
"""
Acts like method missing. If a method of MailStore is not implemented in this class,