From 5af059a237833f52869a632e490ff932315a4939 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Mon, 17 Feb 2014 10:52:17 -0400 Subject: defer message push to thread --- src/leap/mail/imap/memorystore.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/leap/mail/imap') diff --git a/src/leap/mail/imap/memorystore.py b/src/leap/mail/imap/memorystore.py index 53b8d99..2d1f95b 100644 --- a/src/leap/mail/imap/memorystore.py +++ b/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. -- cgit v1.2.3