summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/src/leap/mail/imap/memorystore.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mail/src/leap/mail/imap/memorystore.py b/mail/src/leap/mail/imap/memorystore.py
index 53b8d99..2d1f95b 100644
--- a/mail/src/leap/mail/imap/memorystore.py
+++ b/mail/src/leap/mail/imap/memorystore.py
@@ -42,6 +42,8 @@ from leap.mail.imap.messageparts import RecentFlagsDoc
from leap.mail.imap.messageparts import MessageWrapper
from leap.mail.imap.messageparts import ReferenciableDict
+from leap.mail.decorators import deferred_to_thread
+
logger = logging.getLogger(__name__)
@@ -514,6 +516,7 @@ class MemoryStore(object):
# IMessageStoreWriter
+ @deferred_to_thread
def write_messages(self, store):
"""
Write the message documents in this MemoryStore to a different store.