diff options
author | Kali Kaneko <kali@leap.se> | 2015-06-18 23:20:45 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-06-22 11:39:20 -0400 |
commit | c8dfed5b5f4ccb87003119f14e189566219365bb (patch) | |
tree | 54ac88958970358dc02c808c8f831d3cd254baaa /src/leap/mail/sync_hooks.py | |
parent | 1348798e88c6026f57ff938c59a2dce979a9a891 (diff) |
[bug] fixes for display attachments and move between folders0.4.0-alpha
- Add errback handling to catch properly errors that were not allowing
the complete insertion of the parts for a given message. Fixes blank
attachments and moving of messages to different folders.
- Force overwritting of mdoc when it is a copy. This was avoiding a
message to be copied back to a folder from where it already had been
copied to another (since the mdoc was already existing there, with the
same doc_id, which was forbidding the creation of the new one).
This case also needs special care in the indexer, since we have to
delete the old hash entry first.
Closes: #7178, #7158
Diffstat (limited to 'src/leap/mail/sync_hooks.py')
-rw-r--r-- | src/leap/mail/sync_hooks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/mail/sync_hooks.py b/src/leap/mail/sync_hooks.py index a8a69c9..bd8d88d 100644 --- a/src/leap/mail/sync_hooks.py +++ b/src/leap/mail/sync_hooks.py @@ -86,7 +86,7 @@ class MailProcessingPostSyncHook(object): # have seen -- but make sure *it's already created* before # inserting the index entry!. d = indexer.create_table(mbox_uuid) - d.addCallback(lambda _: indexer.insert_doc(mbox_uuid, index_docid)) + d.addBoth(lambda _: indexer.insert_doc(mbox_uuid, index_docid)) self._processing_deferreds.append(d) def _process_queued_docs(self): |