diff options
author | Kali Kaneko <kali@leap.se> | 2014-02-12 13:13:36 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2014-02-17 11:39:50 -0400 |
commit | 1baafbaa8e3dd7d62580ba4ad3a829ceaf16f583 (patch) | |
tree | b0dbab880eed854e2ce84acba186c20829c6f3ea /src | |
parent | 1217be6c792d87134f6801591c7bfa9536c9a3d1 (diff) |
remove early notification on append for now
this can be done to save some msec, but additional measures
have to be taken to avoid inconsistencies with reads right after
this is done. we could make those wait until a second deferred
is done, for example.
Diffstat (limited to 'src')
-rw-r--r-- | src/leap/mail/imap/messages.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/leap/mail/imap/messages.py b/src/leap/mail/imap/messages.py index a49ea90..fc1ec55 100644 --- a/src/leap/mail/imap/messages.py +++ b/src/leap/mail/imap/messages.py @@ -923,13 +923,14 @@ class MessageCollection(WithMsgFields, IndexedDB, MailParser, MBoxParser): return uid = self.memstore.increment_last_soledad_uid(self.mbox) - # We can say the observer that we're done at this point. - # Make sure it has no serious consequences if we're issued - # a fetch command right after... - self.reactor.callFromThread(observer.callback, uid) + + # We can say the observer that we're done at this point, but + # before that we should make sure it has no serious consequences + # if we're issued, for instance, a fetch command right after... + #self.reactor.callFromThread(observer.callback, uid) # if we did the notify, we need to invalidate the deferred # so not to try to fire it twice. - observer = None + #observer = None fd = self._populate_flags(flags, uid, chash, size, multi) hd = self._populate_headr(msg, chash, subject, date) |