diff options
author | Kali Kaneko <kali@leap.se> | 2014-02-17 10:52:17 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2014-02-17 11:39:51 -0400 |
commit | 5af059a237833f52869a632e490ff932315a4939 (patch) | |
tree | 685dca65c818fa0adfa30c59b053b9c28588ed6f /src/leap | |
parent | f72fd69e637aa252f64c0e0ec8f7e3ebeb2290bb (diff) |
defer message push to thread
Diffstat (limited to 'src/leap')
-rw-r--r-- | src/leap/mail/imap/memorystore.py | 3 |
1 files changed, 3 insertions, 0 deletions
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. |