diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-07-15 10:17:10 +0200 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-11 17:00:23 +0200 |
commit | 21d4c5cccbd218fb5e654eb2369e5c4dad917259 (patch) | |
tree | 8e31c13b14ad3389da5d14d5384188b3354581bd /service/pixelated/adapter/soledad | |
parent | 72c7d1da2c50621fb93e18687beb089c2d2723b8 (diff) |
All mails now displays mails.
Diffstat (limited to 'service/pixelated/adapter/soledad')
-rw-r--r-- | service/pixelated/adapter/soledad/soledad_reader_mixin.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/service/pixelated/adapter/soledad/soledad_reader_mixin.py b/service/pixelated/adapter/soledad/soledad_reader_mixin.py index b365da7e..dab38376 100644 --- a/service/pixelated/adapter/soledad/soledad_reader_mixin.py +++ b/service/pixelated/adapter/soledad/soledad_reader_mixin.py @@ -69,11 +69,12 @@ class SoledadReaderMixin(SoledadDbFacadeMixin, object): return PixelatedMail.from_soledad(fdoc, hdoc, bdoc, parts=parts, soledad_querier=self) + @defer.inlineCallbacks def mails(self, idents): - fdocs_chash = [(self.get_flags_by_chash(ident), ident) for ident in + fdocs_chash = [((yield self.get_flags_by_chash(ident)), ident) for ident in idents] fdocs_chash = [(result, ident) for result, ident in fdocs_chash if result] - return self._build_mails_from_fdocs(fdocs_chash) + defer.returnValue((yield self._build_mails_from_fdocs(fdocs_chash))) @defer.inlineCallbacks def attachment(self, attachment_ident, encoding): |