diff options
author | Duda Dornelles <ddornell@thoughtworks.com> | 2014-10-23 10:04:10 +0200 |
---|---|---|
committer | Duda Dornelles <ddornell@thoughtworks.com> | 2014-10-23 12:08:31 +0200 |
commit | ab6c270d3c1fbd403e9def4b789a56b45119de78 (patch) | |
tree | 8cc335843b1a11e410dc80711008c3b93ea49edc /service/pixelated | |
parent | 64d87fd813d999de682b37b3e0b26df33762d338 (diff) |
removing the rct flags doc for all mailboxes
Diffstat (limited to 'service/pixelated')
-rw-r--r-- | service/pixelated/adapter/soledad_querier.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/service/pixelated/adapter/soledad_querier.py b/service/pixelated/adapter/soledad_querier.py index 796e8321..9187e50b 100644 --- a/service/pixelated/adapter/soledad_querier.py +++ b/service/pixelated/adapter/soledad_querier.py @@ -44,9 +44,10 @@ class SoledadQuerier: self._remove_dup_recent(mailbox) def mark_all_as_not_recent(self): - rct = self.soledad.get_from_index('by-type', 'rct')[0] - rct.content['rct'] = [] - self.soledad.put_doc(rct) + for mailbox in ['INBOX', 'DRAFTS', 'SENT', 'TRASH']: + rct = self.soledad.get_from_index('by-type-and-mbox', 'rct', mailbox)[0] + rct.content['rct'] = [] + self.soledad.put_doc(rct) def all_mails(self): fdocs_chash = [(fdoc, fdoc.content['chash']) for fdoc in self.soledad.get_from_index('by-type', 'flags')] |