diff options
author | Kali Kaneko <kali@leap.se> | 2014-02-11 02:53:28 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2014-02-17 11:39:49 -0400 |
commit | fd9c8c2e3c88476b90805b689f6914fe5eac16df (patch) | |
tree | 36a7079f8f10d71d67abbb945612e1588864b922 /src/leap/mail/imap/messages.py | |
parent | 04dfa3afdbb2080c717bfd32d6e47641615967fc (diff) |
defer fetch to thread
also, dispatch query for all headers to its own method.
Diffstat (limited to 'src/leap/mail/imap/messages.py')
-rw-r--r-- | src/leap/mail/imap/messages.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/leap/mail/imap/messages.py b/src/leap/mail/imap/messages.py index bbc9deb..7884fb0 100644 --- a/src/leap/mail/imap/messages.py +++ b/src/leap/mail/imap/messages.py @@ -28,7 +28,6 @@ from functools import partial from twisted.mail import imap4 from twisted.internet import defer -from twisted.python import log from zope.interface import implements from zope.proxy import sameProxiedObjects @@ -1248,12 +1247,14 @@ class MessageCollection(WithMsgFields, IndexedDB, MailParser, MBoxParser): all_flags = dict(all_docs) return all_flags - # TODO get from memstore def all_headers(self): """ - Return a dict with all the headers documents for this + Return a dict with all the header documents for this mailbox. + + :rtype: dict """ + return self.memstore.all_headers(self.mbox) def count(self): """ |