summaryrefslogtreecommitdiff
path: root/src/leap/mail/imap/soledadstore.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-01-29 00:54:20 -0400
committerKali Kaneko <kali@leap.se>2014-01-30 14:20:56 -0400
commit1b71ba510a2e6680f1ecc84eacfc492b0bbe24fc (patch)
treecb0984252737a9e4dfc9df24d8d8e3a6974bf71f /src/leap/mail/imap/soledadstore.py
parent3243d37fcc3703bc9428717ffc72c4e680831813 (diff)
Fix copy and deletion problems
* reorganize and simplify STORE command processing * add the notification after the processing of the whole sequence
Diffstat (limited to 'src/leap/mail/imap/soledadstore.py')
-rw-r--r--src/leap/mail/imap/soledadstore.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/leap/mail/imap/soledadstore.py b/src/leap/mail/imap/soledadstore.py
index f64ed23..ae5c583 100644
--- a/src/leap/mail/imap/soledadstore.py
+++ b/src/leap/mail/imap/soledadstore.py
@@ -26,6 +26,7 @@ from u1db import errors as u1db_errors
from zope.interface import implements
from leap.common.check import leap_assert_type
+from leap.mail.decorators import deferred
from leap.mail.imap.messageparts import MessagePartType
from leap.mail.imap.messageparts import MessageWrapper
from leap.mail.imap.messageparts import RecentFlagsDoc
@@ -191,6 +192,7 @@ class SoledadStore(ContentDedup):
# IMessageConsumer
+ @deferred
def consume(self, queue):
"""
Creates a new document in soledad db.
@@ -297,9 +299,6 @@ class SoledadStore(ContentDedup):
# item is expected to be a MessagePartDoc
for item in msg_wrapper.walk():
if item.part == MessagePartType.fdoc:
-
- # FIXME add content duplication for HEADERS too!
- # (only 1 chash per mailbox!)
yield dict(item.content), call
elif item.part == MessagePartType.hdoc: