summaryrefslogtreecommitdiff
path: root/src/leap/mail/imap/mailbox.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-02-02 09:26:37 -0400
committerKali Kaneko <kali@leap.se>2014-02-02 18:08:31 -0400
commit18fed49c4143eb764ae9e806882d24f8f4e95744 (patch)
tree2c0c56a28ac9bf4839623b28de746670e6e4b499 /src/leap/mail/imap/mailbox.py
parent3a8fda3aa4645adbba228e7d2f204bfe6d400321 (diff)
fix missing content after in-memory add
because THE KEYS WILL BE STRINGS AFTER ADDED TO SOLEDAD Can I remember that? * Fix copy from local folders * Fix copy when we already have a copy of the message in the inbox, marked as deleted. * Fix also bad deferred.succeed in add_msg when it already exist.
Diffstat (limited to 'src/leap/mail/imap/mailbox.py')
-rw-r--r--src/leap/mail/imap/mailbox.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/leap/mail/imap/mailbox.py b/src/leap/mail/imap/mailbox.py
index 79fb476..688f941 100644
--- a/src/leap/mail/imap/mailbox.py
+++ b/src/leap/mail/imap/mailbox.py
@@ -162,6 +162,7 @@ class SoledadMailbox(WithMsgFields, MBoxParser):
"""
if not NOTIFY_NEW:
return
+
logger.debug('adding mailbox listener: %s' % listener)
self.listeners.add(listener)
@@ -801,7 +802,6 @@ class SoledadMailbox(WithMsgFields, MBoxParser):
from twisted.internet import reactor
print "COPY :", message
d = defer.Deferred()
-
# XXX this should not happen ... track it down,
# probably to FETCH...
if message is None:
@@ -810,7 +810,6 @@ class SoledadMailbox(WithMsgFields, MBoxParser):
deferLater(reactor, 0, self._do_copy, message, d)
return d
- #@profile
def _do_copy(self, message, observer):
"""
Call invoked from the deferLater in `copy`. This will
@@ -851,7 +850,7 @@ class SoledadMailbox(WithMsgFields, MBoxParser):
logger.warning("Destination message already exists!")
# XXX I'm still not clear if we should raise the
- # callback. This actually rases an ugly warning
+ # errback. This actually rases an ugly warning
# in some muas like thunderbird. I guess the user does
# not deserve that.
#observer.errback(MessageCopyError("Already exists!"))