summaryrefslogtreecommitdiff
path: root/src/leap/mail/imap/mailbox.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-02-04 10:57:49 -0400
committerKali Kaneko <kali@leap.se>2014-02-04 14:45:47 -0400
commit23e28bae2c3cb74e00e29ee8add0b73adeb65c2b (patch)
treeeec0561e2184472dfedba3135a3d005efd478c34 /src/leap/mail/imap/mailbox.py
parent8201146254a204fec92395bf497a2a6f76274b85 (diff)
fixes after review
* Some more docstring completion/fixes. * Removed unneeded str coertion. * Handle mailbox name in logs. * Separate manhole boilerplate into its own file.
Diffstat (limited to 'src/leap/mail/imap/mailbox.py')
-rw-r--r--src/leap/mail/imap/mailbox.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/leap/mail/imap/mailbox.py b/src/leap/mail/imap/mailbox.py
index 40d3420..c682578 100644
--- a/src/leap/mail/imap/mailbox.py
+++ b/src/leap/mail/imap/mailbox.py
@@ -52,11 +52,6 @@ notifying clients of new messages. Use during stress tests.
NOTIFY_NEW = not os.environ.get('LEAP_SKIPNOTIFY', False)
-class MessageCopyError(Exception):
- """
- """
-
-
class SoledadMailbox(WithMsgFields, MBoxParser):
"""
A Soledad-backed IMAP mailbox.
@@ -802,7 +797,7 @@ class SoledadMailbox(WithMsgFields, MBoxParser):
# probably to FETCH...
if message is None:
log.msg("BUG: COPY found a None in passed message")
- d.calback(None)
+ d.callback(None)
deferLater(reactor, 0, self._do_copy, message, d)
return d
@@ -849,7 +844,6 @@ class SoledadMailbox(WithMsgFields, MBoxParser):
# 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!"))
observer.callback(True)
else:
mbox = self.mbox